DataGrid scrolling

  • Thread starter Thread starter john sutor
  • Start date Start date
J

john sutor

Does anyone know if you can display vertical scroll or horizontal scroll
bars on the datagrid ???
 
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,
 
Back
Top