DataGrid scrolling

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

    #1

    DataGrid scrolling

    Does anyone know if you can display vertical scroll or horizontal scroll
    bars on the datagrid ???


  • Ignacio Machin \( .NET/ C#  MVP \)

    #2
    Re: DataGrid scrolling

    HI John,

    Are you refering to windows forms or ASP.NET grid?
    if the latter you don't have that feature build in, but it's very easy to
    implement, just include the datagrid inside a <DIV> tag and set the Style to
    allow scroll either in the vertical or horizontal : style=" OVERFLOW-Y:
    scroll;

    I have never have need to use a windows datagrid with scrolling capability,
    I see a Scroll event in the grid but nothing more, if it's not supported
    then you can get a similar construction that the ASP.NET using panels and a
    scrollbar, I do this in a PocketPC application. basically I have a Panel
    with a scrollbar and inside of it I have a grid in such a way that in the
    scroll event I change the grid position as needed and as it's inside a panel
    you have your scrolling feature :)


    Hope this help,

    --
    Ignacio Machin,
    ignacio.machin AT dot.state.fl.us
    Florida Department Of Transportation

    "john sutor" <john_sutor@NOS PAM> wrote in message
    news:ux0Fq1YnDH A.2012@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Does anyone know if you can display vertical scroll or horizontal scroll
    > bars on the datagrid ???
    >
    >[/color]


    Comment

    Working...