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

Row Backcolor

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Donnie
Top achievements
Rank 1
Donnie asked on 24 Mar 2009, 08:23 PM
I would like to set the backcolor of a row based on data within a dataset when I set the dataset then I want to everything to work as normal. The only way I can figure out how to do it  is use the "RowFormatting" but everytime you move your mouse over a row the "RowFormatting" function gets called and it does the redraw like it is a brand new row. Is there anything like a rowinitialize event. or how do I set the hover color

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 25 Mar 2009, 01:00 PM
Hello Donnie,

Thank you for contacting us.

You should use the RowFormatting or CellFormatting events in this case. These events are fired every time when a row or cell changes its state or data. You can check the IsCurrent, IsSelected and the RowVisualState properties to get information in which state the cell is. I will be able to give more concrete suggestion if you describe in detail the behavior you want to achieve.

Currently you can change the mouse hover color only by modifying or creating a new theme.

I am looking forward to your reply.

All the best,
Jack
the Telerik team

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