This is a migrated thread and some comments may be shown as answers.

Flashing GridView Column Headers

1 Answer 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
StevenDale
Top achievements
Rank 2
StevenDale asked on 06 Jan 2012, 10:59 PM
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.

Thanks,

Billy Jacobs

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 09 Jan 2012, 10:13 AM
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)
          {
 
          }
          else
          {
 
          }
         
      }

Greetings,
Vanya Pavlova
the Telerik team

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

Tags
GridView
Asked by
StevenDale
Top achievements
Rank 2
Answers by
Vanya Pavlova
Telerik team
Share this question
or