How to highlight a DataGridView Row by Code

2 posts, 0 answers
  1. Stefan
    Stefan avatar
    1 posts
    Member since:
    Sep 2010

    Posted 18 Oct 2010 Link to this post


    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

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 20 Oct 2010 Link to this post

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