Datagrid- scroll

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
 
R

rovshan

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
 
S

Steve C. Orr [MVP, MCSD]

You must make the header a separate grid.
This is a limitation of HTML.
 
S

sumit

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,064
Latest member
naturesElixirCBDReview

Latest Threads

Top