Customize the selection color?

4 posts, 2 answers
  1. immitev
    immitev avatar
    9 posts
    Member since:
    Nov 2006

    Posted 16 Jan 2009 Link to this post

    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
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 19 Jan 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. immitev
    immitev avatar
    9 posts
    Member since:
    Nov 2006

    Posted 19 Jan 2009 Link to this post

    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..
  5. Answer
    Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 19 Jan 2009 Link to this post

    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.
Back to Top