Hi All,
In my grid, I have total two rows in Header section. I need to give two different color for these two rows. Can you let me know how to set different row background color for the rows present in Header section?
Thanks in advance,
-Suresh
Hello,
You can use the property BackColor of column header. Please take a look at the code below:
protected void Page_Load(object sender, EventArgs e) { UltraWebGrid1.Columns[0].Header.Style.BackColor = Color.Red; }
Hope this helps.
Hi Ivan,
Thanks for the response.
I tried the code and it is changing the color of the header row column which is generated automatically using databind method. Apart from this row, I created a new row on the fly using Infragistics.WebUI.UltraWebGrid.ColumnHeader and added it to Bands(0).HeaderLayout. It is not changing the color of this dynamically added row. Also I gave the Style.BackColor property for this newly created ColumnHeader. But it is not working. Please help me .