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

Programmatically Selecting/Highlighting A Row

4 Answers 339 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sasa Milovic
Top achievements
Rank 1
Sasa Milovic asked on 17 May 2007, 11:15 AM
Hi

How do you programatically highlight a row?

I've tried setting the IsCurrent Property of the row, but this does not highlight it.

The IsSelected Property is readonly.

Also when will the documentation for the radgridview be complete (it appears to be a bit wishy washy at the moment)

4 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 17 May 2007, 03:58 PM
Hi Sasa,

There are two ways to programmatically highlight a row:

  1. Use the Row's IsCurrent property:

    this.radGridView1.Rows[10].IsCurrent = true;
     
  2. Use the GridViewInfo's CurrentRow property: 

    this.radGridView1.MasterGridViewInfo.CurrentRow = this.radGridView1.Rows[10];

In our current release you must update the grid interface. We will fix this in our next version. To do so, use this code:

this.radGridView1.GridElement.Update(false);

As to the documentation, it is our main priority for SP2 (due in 4-6 weeks) and for Q2. We are ready to help with any questions you may have until then.


All the best,

Jack

the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
0
Sasa Milovic
Top achievements
Rank 1
answered on 18 May 2007, 07:05 AM
Thanks, that worked and I am really looking forward to the documentation ;)
0
Louis
Top achievements
Rank 1
answered on 18 Sep 2007, 07:14 PM
i'm doing exactly what you're saying

this.grdSearchResults.MasterGridViewInfo.CurrentRow = this.grdSearchResults.Rows[idx];

this.grdSearchResults.GridElement.Update(false);

where idx = 0

and none of he rows appears to be selected??

0
Jack
Telerik team
answered on 19 Sep 2007, 05:17 PM
Hi Louis ,

We answered your questions in your other forum post.

Let us know if you have other questions.
 

Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Sasa Milovic
Top achievements
Rank 1
Answers by
Jack
Telerik team
Sasa Milovic
Top achievements
Rank 1
Louis
Top achievements
Rank 1
Share this question
or