Datagrid- scroll

  • Thread starter Thread starter sumit
  • Start date Start date
S

sumit

Hi,
I want to make a datagrid to be scrollable instead of
paging in it. So i have put that datagrid html tags inside
<div></div> tags and made that div scrollable.
Due to this if i scroll down the datagrid,header is not
shown int the datagrid view because that header is also
considered as a row in datagrid!!
I want datagrid to be scrollable but header of the
datagrid should always be there.
Please suggest,
Thanks
 
Hi,

you can implement custom header, or you can override
ItemCreated event and wrap all the DataGrid except header
into a <DIV>. I'm not sure if the second approach will
work.

Thanks,
Rovshan
 
You must make the header a separate grid.
This is a limitation of HTML.
 
Hi,
Yeh i did that and made different data grid having only
one row which contains only header. But my second data
grid which contains the actual data will have horizontal
scroll bar,,so when user scrolls that hori. bar upper
datagrid header should also get scrolled.

Please let me know if this doesnot make you understand i
will explain in detail,,
User has this requirement as urgent one,,Urgent response
is really helpful to me,,

Thanks
 
Back
Top