Don't do it that way because it won't look professional. The header and the
body start to misalign when the body information changes. Either buy a
component here is one:
http://www.makeitscroll.com/
or have a look at Dino Esposito's november publication of Freeze the Header
Scroll the Grid published in aspnet pro magazine. I had a copy and a link,
can't find it now. But he put the code out on the web so you should not have
difficulty finding it. It does have issues as well FYI
regards
--
-----------
Got TidBits?
Get it here:
www.networkip.net/tidbits
"sumit" <(E-Mail Removed)> wrote in message
news:4fb201c3ac3c$f989d1c0$(E-Mail Removed)...
> Hi,
> I made a data grid vertically as well as horizontal
> scrollable as number of columns are very large!!
>
> But when i scroll horizontally then header is not visible
> as it also gets scrolled up,,so to tackle this i made a
> different data grid having only header as the row and the
> other datagrid contains the actual data for it,,
>
> Due to this vertical scrolling problem goes as i have put
> second data grid in <div/> tag and upper data grid is
> outside the <div/> tag. But horizontal scrolling for lower
> data grid doesnot cause horizontal scrolling of upper data
> grid which contains header for lower data grid contains!!
>
> User has this requirement as urgent one,,Urgent response
> is really helpful to me,,
>
> Thanks
>