Gridview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gunawan

    #1

    Gridview

    Hi,
    I have a gridview inside a table <table>...</table>
    I have define explicitly wide of the table, for example 800px.
    If we need gridview which is inside 800px table wider than table wide, how
    can I show horizontal scroll bar on it?
    I do not want to change the wide of main table. Thank you.

    TIA & Regards,
    Gun


  • Ben Rush

    #2
    Re: Gridview

    Hello,

    I've never done it with the GridView, but I'm sure it applies there too:



    The overflow property defines what an object does when it overflows the
    boundaries of its parent. Setting this to scrollable will give you the end
    result of a scrollbar which - I think - is what you want.

    If you need an example let me know.

    --
    ~~~~~~~~~~~
    Ben Rush



    "Gunawan" <jgun98.milis@g mail.comwrote in message
    news:%23Iq4KXPc HHA.4216@TK2MSF TNGP02.phx.gbl. ..
    Hi,
    I have a gridview inside a table <table>...</table>
    I have define explicitly wide of the table, for example 800px.
    If we need gridview which is inside 800px table wider than table wide, how
    can I show horizontal scroll bar on it?
    I do not want to change the wide of main table. Thank you.
    >
    TIA & Regards,
    Gun
    >

    Comment

    • David Wier

      #3
      Re: Gridview

      You can put the gridview inside a panel, and use the scrollbars on the
      panel. Check out the sample at ASPNet101:


      --
      David Wier
      MVP/ASPInsider





      "Gunawan" <jgun98.milis@g mail.comwrote in message
      news:%23Iq4KXPc HHA.4216@TK2MSF TNGP02.phx.gbl. ..
      Hi,
      I have a gridview inside a table <table>...</table>
      I have define explicitly wide of the table, for example 800px.
      If we need gridview which is inside 800px table wider than table wide, how
      can I show horizontal scroll bar on it?
      I do not want to change the wide of main table. Thank you.
      >
      TIA & Regards,
      Gun
      >
      >

      Comment

      • Gunawan

        #4
        Re: Gridview

        Thanks Ben,
        It is look like a good article.
        An example from you would help me much.
        Thank In Advance.

        Gun

        "Ben Rush" <kwendex@yahoo. comwrote in message
        news:%23F%23wRW QcHHA.4012@TK2M SFTNGP03.phx.gb l...
        Hello,
        >
        I've never done it with the GridView, but I'm sure it applies there too:
        >

        >
        The overflow property defines what an object does when it overflows the
        boundaries of its parent. Setting this to scrollable will give you the end
        result of a scrollbar which - I think - is what you want.
        >
        If you need an example let me know.
        >
        --
        ~~~~~~~~~~~
        Ben Rush

        >
        >
        "Gunawan" <jgun98.milis@g mail.comwrote in message
        news:%23Iq4KXPc HHA.4216@TK2MSF TNGP02.phx.gbl. ..
        >Hi,
        >I have a gridview inside a table <table>...</table>
        >I have define explicitly wide of the table, for example 800px.
        >If we need gridview which is inside 800px table wider than table wide,
        >how can I show horizontal scroll bar on it?
        >I do not want to change the wide of main table. Thank you.
        >>
        >TIA & Regards,
        >Gun
        >>
        >
        >

        Comment

        • Gunawan

          #5
          Re: Gridview

          Now I can figure it out to display scroll bar with panel.
          Thank you David.

          Regards,
          Gun

          "David Wier" <david_wier@noS pamhotmail.comw rote in message
          news:ectymtWcHH A.4368@TK2MSFTN GP02.phx.gbl...
          You can put the gridview inside a panel, and use the scrollbars on the
          panel. Check out the sample at ASPNet101:

          >
          --
          David Wier
          MVP/ASPInsider


          >
          >
          >
          "Gunawan" <jgun98.milis@g mail.comwrote in message
          news:%23Iq4KXPc HHA.4216@TK2MSF TNGP02.phx.gbl. ..
          >Hi,
          >I have a gridview inside a table <table>...</table>
          >I have define explicitly wide of the table, for example 800px.
          >If we need gridview which is inside 800px table wider than table wide,
          >how
          >can I show horizontal scroll bar on it?
          >I do not want to change the wide of main table. Thank you.
          >>
          >TIA & Regards,
          >Gun
          >>
          >>
          >
          >

          Comment

          Working...