Flashing GridView Column Headers

2 posts, 0 answers
  1. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 06 Jan 2012 Link to this post

    I would like to be able to change the background color of the Column Headers of a GridView when the Grid has any items (rows) and stop it when there no items (rows). I would really like to make it flash a new background color but I will settle for just being able to change the background color of the GridView Column Headers when it has items (rows). Is this possible? If so can you provide an example?

    I am currently using version 2011.2.712.35.


    Billy Jacobs
  2. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 09 Jan 2012 Link to this post

    Hi Billy,


    You may check the item count of RadGridView through observing the Items Collection of RadGridView and once the condition is met you may set your "flash" column header style to all columns in RadGridView. Otherwise return to the default one:

    private void RadButton_Click(object sender, RoutedEventArgs e)
              if (this.radGridView.Items.Count > 0)

    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top