Groups | Blog | Home
all groups > asp.net datagrid control > september 2005 >

asp.net datagrid control : Scroll grid With fixed header (It this posible?)


Ivan gil
9/16/2005 12:00:00 AM
Hi, i explain my question...
I have an ascx web user control this one have a datagrid whit some
properties i had make a good datagrid user control for me. But now i have
the last problem i was looking for a way to put scroll bars if my control
width and height are lowers than the datagrid height and width using the
next method....i override the method render in the ascx an i write the html
<div style="overflow:auto"> before renderchildrens() and then </div> but it
make that my header scroll to i need the way to fix it but only with code
inside that control not in aspx or codebehind.
It is posible??
Thanks Ivan

msnews.microsoft.com
9/18/2005 9:52:37 AM

[quoted text, click to view]


Yes you can fix the header on the datagrid using the CSS as in this example:
http://www.societopia.net/samples/dataGrid_5c.aspx

HTH,
Phillip Williams
http://www.webswapp.com
http://www.societopia.net

AddThis Social Bookmark Button