Hi,
I am currently using the NetAdvantage 2008 UltraWebGrid. I have altered the grid, so that it doesn't display scrollbars, but rather, adjusts it's size according to the browser (and displays scrollbars appropriately). This was quite simple:
UltraWebGrid1.Width = Unit.Empty;
UltraWebGrid1.Height = Unit.Empty;
The problem is that the grid header isn't fixed. I actually need to create a fixed, multi-line header. Is it possible to do this under the circumstances detailed above.
Thanks!
I am not sure that this scenario will be supported in this way - for the header to be fixed, the scrollbars must be controlled by the grid itself, whereas in your setup the browser takes care of scrolling and scrolls everything, header included.
You might be able to get better results with percentages for width / height (e.g. 100%) - just please note that <table> height in quirksmode in IE is not supported in percentages (you need to remove the DOCTYPE).
Also, you can check out the FrameStyle settings and experiment with height / width there.
<displaylayout bordercollapsedefault="Separate" name="UltraWebGrid1" CellClickActionDefault="RowSelect" rowheightdefault="20px" version="4.00"> <framestyle borderstyle="Solid" borderwidth="1px" font-names="Verdana" font-size="8pt" height="200px" width="325px"> </framestyle>
In my ultrawebgrid, I am having scrollbar and I want to fix the column headers at runtime. Columns ,rows etc is dynamic.
I tried using
1) ultrawebgrid.Bands(Counter).Columns(lCounter).Header.Fixed = True
2) Dim ch As Infragistics.WebUI.UltraWebGrid.ColumnHeader ch = ultrawebgrid.Bands(Counter).Columns(lCounter).Header ch .Fixed = True
ch .RowLayoutColumnInfo.OriginX=0
ch .RowLayoutColumnInfo.OriginY = 0
ch .RowLayoutColumnInfo.SpanX = 2
ch .RowLayoutColumnInfo.SpanY = 0
but my column header get disappeared. please help me in this its urgent.
Thanks in advance.
I know its an older post but for anyone out there still searching for answers.
-
Private
Sub grdMain_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles grdMain.InitializeLayout
grdMain.DisplayLayout.StationaryMargins = Infragistics.WebUI.UltraWebGrid.StationaryMargins.Header
This will make the headers fixed as well. Maybe not exactly what they were looking for but this is where I began my search for UltraWebGrid fixed headers. One line of code.
Thanks, I have solved my problem while going thru this blog post.