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

Change Current Row Icon?

1 Answer 124 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rachel
Top achievements
Rank 2
Rachel asked on 05 Dec 2008, 03:45 PM
Hello,
I have applied a custom theme to my grid that uses a dark gray background on the rows.  However, I would like to change the black arrow in the row header cell that indicates the current row.  I would like to use a green arrow in the header row to indicate the current row, instead of the black, but I can't seem to change it in the theme.  How can I change this icon or change the color of the arrow?

Thanks,
Rachel

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 08 Dec 2008, 11:05 PM
Hello Rachel,

Thank you for your question.

There are three elements in the grid which are images: CurrentRowHeaderImage, EditRowHeaderImage, and NewRowHeaderImage. All other elements are vector graphics and are themed using the Visual Style Builder.

In particular, the code snippet below changes the current row header image in Form_Load event handler:

((GridTableElement)this.radGridView1.GridElement).CurrentRowHeaderImage = Image.FromFile("image.jpg"); 

Documentation will be soon updated with the above information.

Do not hesitate to contact me back if you have more questions.

Kind regards,
Nick
the Telerik team

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