Hi,
How can I have fixed headers in my grid?
Hi rohitarora,
I assume you're asking about the WebDataGrid. I'm going to guess you mean you want a header and its corresponding cells fixed to one side? So they do not scroll? Because the header is always fixed at the top. Assuming this is the case, simply turn on the ColumnFixing behavior. That will add fix buttons to the header to fix columns.
regards,David Young
Hi David,
Yes, I have a webdatagrid in panel.
Actually I was looking for that my header rows remains fixed when I scroll down in the grid.
Regards
Rohit
Hi Rohit,
Only the data rows should be scrolling in the WebDataGrid. What behavior are you seeing?
-Dave
I have a webdatagrid inside a iframe -
<iframe id="bottom" runat="server" height="100%" width="100%" src="report.aspx" frameborder="0" scrolling="auto" />
Report.aspx has webdatagrid, Grid's markup is -
<ig:WebDataGrid ItemCssClass="grid" AltItemCssClass="gridAltItem" HeaderCaptionCssClass="gridHeader" EnableAjaxViewState="False" EnableAjax="False" ID="grdReport" runat="server" AutoGenerateColumns="False" Height="100%" Width="100%">
Both horizontal & vertical scrollbar for grid appears but when I scroll down the headers doesn't appear to be fixed & goes away with the scroll. Any suggestion what might be going wrong?