Hi,
UltraWebGrid1_SortColumn function, and it appears that i can set the value ok, but it is not doing the display. the code is as follows.
Dim uwgcol As Infragistics.WebUI.UltraWebGrid.UltraGridColumnFor Each uwgcol In UltraWebGrid1.ColumnsIf uwgcol.SortIndicator <> Infragistics.WebUI.UltraWebGrid.SortIndicator.None Thenuwgcol.Header.Style.BackColor = Color.AquamarineElseuwgcol.Header.Style.BackColor = Color.MoccasinEnd IfNextEnd Sub
Any thoughts on what i am doing wrong and why i can't set the background color?
Unfortunately i didn't sort by date time fields so am not sure why it would not be sorting correctly. The only thing i can think is that the column is not set as a datetime column to enable the grid to sort properly. It may be worth raising a support issue with Infragistics about it.
Simon
hey,
Do you have any idea , how to do this sorting thing, because when i enable sorting at client side , its working for all the fields,except datetime field? For datetime column , its not sorting correctly. i was looking in to the example which you provide above, is that the way to do sorting?
Thank You
Managed to get around this problem by removing any hard coded colors on the grid/band/headers and just set the css class on the header. I can then change the class of the header dynamically and it allows me to do what i want.
In case anyone else was wondering, here is the source code
Dim uwgColumn As Infragistics.WebUI.UltraWebGrid.UltraGridColumnFor Each uwgColumn In UltraWebGrid1.ColumnsIf uwgColumn.SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Ascending And uwgColumn.Index = e.ColumnNo ThenuwgColumn.Header.Style.CssClass = "SortAscending"ElseIf uwgColumn.SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Descending And uwgColumn.Index = e.ColumnNo ThenuwgColumn.Header.Style.CssClass = "SortDescending"ElseuwgColumn.SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.NoneuwgColumn.Header.Style.CssClass = "NoSort"End IfNextEnd Sub