Hi there
Does anyone know if it is possible to format 1 row a different color than the rest of the grid? If yes, can you please explain how to achieve this?
Thank you
You can set the Style.BackColor for a row based on a value.
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { if ((int)e.Row.Cells[0].Value == 2) { e.Row.Style.BackColor = System.Drawing.Color.Red; } }
I am using the above method, and it seems to be working, then I scroll down on the grid, and the formatting seems to only apply to the first ~200 rows, but the data is telling the grid to mark a whole lot more with the red....
Any suggestions?
And when I export to excel, all appropriate rows are formatted with the red, even when they were not in the grid.
As for the formatting stopping as you scroll down, if you are using the latest hotfix of the control I would report that to Developer Support as that sounds buggy.