Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Change WebHierarchicalDataGrid Column Header CSS from Code Behind
posted

Hi Guys,

I've a requirement to change the WebHierarchicalDataGrid column header CSS from code behind. Below is the code snippet:

For Each col As Infragistics.Web.UI.GridControls.BoundDataField In WebHierarchicalDataGrid1.GridView.Columns
     If htFilterCaption.ContainsKey(col.Key) Then
          col.Header.Tooltip = String.Join(Environment.NewLine, DirectCast(htFilterCaption(col.Key), ArrayList).ToArray)
          col.Header.CssClass = "FilteredHeader"
     Else
          col.Header.Tooltip = ""
          col.Header.CssClass = ""
     End If
Next

The code above is working as expected in Infragistics 2013.1 SR 2069 but it does not working anymore when we upgrade the SR to 2331.

As you can see, we need to change the header CSS class to "FilteredHeader".

Any help is appreciated! Thanks!

Parents Reply Children
No Data