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
470
How to override default IG CSS classes?
posted

I am having some issues styling my grid with CSS.

  1. When I set the value on HeaderCaptionCSSClass on the grid, it has no effect whatsoever.
  2. How do I override CSS classes (like igg_Header). I don't want to have to go in and edit IG's default CSS in that class. But I don't see any override ability for these, i.e. a property on the grid like "HeaderCSSClass".

Can someone help me learn how to style the grid better? And no I don't want to use IG's app styling framework.

Thanks!

  • 33839
    Suggested Answer
    posted

    Hi rdeslonde,

    Only certain styling roles can be explicitly set on the WebDataGrid or its behaviors.  Others would have to be overridden in the css class or on the page with a class that has the same name.  In order for your styles that you assign to properties to have effect, please make sure that the correct css selectors are assigned to your styles.  Otherwise, they will not have priority.
    regards,
    David Young