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

Hierarchy expanding collapsing event?

3 Answers 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 07 Jan 2011, 05:54 PM
Is there an event that is thrown when a gridview is expanded or collapsed via the + or minus - being clicked in the parent row?

I have tried using the event, GroupExpanded but it is not being thrown.

The underlying reason for this is that my entire program has a black background, but when I use the RadGridView and set its DockStyle to Fill, the area not populated by the rows is defaulted to white.  I have not been able to change the color of this portion of the control, so I am using a Black panel behind the RadGridView, and dynamically changing the height of the GridView when rows are added via the RowsChanged event.

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 07 Jan 2011, 06:05 PM
Hello,

You can change the back colour of that area using the following code
this.radGridView1.TableElement.BackColor = System.Drawing.Color.Black;
this.radGridView1.TableElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;

(see screenshot)
If this is not what you meant, please let me know and I'll do my best to address your issue
Richard
0
Mark
Top achievements
Rank 1
answered on 07 Jan 2011, 06:23 PM
Perfect thank you.
0
Richard Slade
Top achievements
Rank 2
answered on 07 Jan 2011, 06:27 PM
Glad that helped.
All the best
Richard
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Share this question
or