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

Customize the selection color?

3 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
immitev
Top achievements
Rank 1
immitev asked on 16 Jan 2009, 09:13 AM
Is it possible to customize the selection color?

I have specified an alternating grid row color using  ((GridTableElement) rgv.GridElement).AlternatingRowColor = Color.FromArgb(146, 164, 66);

But the default selection color doesn't look good with it...

UPDATE: Ok, I figure it out - I should subscribe to RowFormattingHandler event

3 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 19 Jan 2009, 08:42 AM
Hi Ivan,

Thanks for writing.

There is also another way to modify the selection color for the rows in the RadGridView. You can create your own theme or modify an existing one by using the Visual Style Builder. Please note that there are currently some issues when using VSB with the grid in particular which will be fixed in the upcoming Q3 2008 SP2 release.

Please do not hesitate to write me back if you need a more thorough explanation.

All the best,
Deyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
immitev
Top achievements
Rank 1
answered on 19 Jan 2009, 11:00 AM
I was wondering why there are 4 BackColor properties of the GridRowElement - BackColor, BackColor2, BackColor3, BackColor4. I could not find documentation explaining how they are used..
0
Accepted
Deyan
Telerik team
answered on 19 Jan 2009, 01:57 PM
Hello Ivan,

Basically, these four properties are used in creating gradients and represent the gradients stop colors. You can read further here:

Gradient Editor

I hope this is useful. Do not to hesitate to write back if you have more questions.

Greetings,
Deyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
immitev
Top achievements
Rank 1
Answers by
Deyan
Telerik team
immitev
Top achievements
Rank 1
Share this question
or