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

How to highlight a DataGridView Row by Code

1 Answer 83 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 18 Oct 2010, 02:18 PM
Hello,

I have three liner gauges and a gridview with three entries. If I move the mouse over the first gauge I want the first row in the grid to be highlighted and so on. With the MouseMove event I want to set the Row in my GridView, but I don't know how.
The gauge is bound to a value collection.

Thanks in advance

Kind regards

Stefan

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 20 Oct 2010, 04:04 PM
Hello Stefan,

I have attached a sample solution that demonstrates the desired functionality -- when each gauge has the reference to the item of gridview row, you can select a row of gridview using the SelectedItem property.

The gauges and the gridview are bound to the same collection. Each gauge has the reference to the item in the Tag property and handles the mouse enter event to select the row of the gridview.

I hope it helps.


Kind regards,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Gauge
Asked by
Stefan
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or