I am using v14.2
Switching from old version where I use to set Header backcolor in server side based on SQL column data like this:
grid.Columns[_key].Header.Style.BackColor = Color.FromName(dr["CIColumnHeaderBackColor"].ToString());
New version has only CSSClass for styling.
How can I change Header back Color dynamically from server side?
Thanks
Hello,
To achieve the desired behavior from the server side would require using the Header's CssClass property and assigning it to a existing CSS style definition.
Let me know if you have any further questions.
Hi,
The problem is I don't have existing CSS style. I need to created style from server side using SQL.
A CSS style is required to be present in the page if you are utilizing the WebDataGrid.
This has been submitted as a product idea and you can vote on it here: http://ideas.infragistics.com/forums/192360-asp-net/suggestions/6068558-reinvent-webdatagrid-style-properties
Let me know if you have any questions.