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

Programatically selecting a row

3 Answers 200 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zsolt
Top achievements
Rank 1
Zsolt asked on 12 Jul 2007, 09:03 AM
Hi,

Using Q1 2007 SP2, I am setting the MasterGridViewInfo.CurrentRow to the row I want to select.
The CurrentRow appear to be set correctly, but the row in the grid does not look selected,as it does not have the focusstyle that it gets when I click the row.

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 12 Jul 2007, 03:12 PM
Hello Zsolt,

Thank you for the reported issue. We confirmed it and will fix it for the next release.
Your points have been updated for reporting this issue.

All the best,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
fgalarraga
Top achievements
Rank 1
answered on 05 Sep 2007, 02:58 PM
Is there a work around to this issue?  I am using the control in the lasted version of my app and it is a major feature to set the first row selected.  How can I do this with the current build?

I have the same build Q1 2007 SP2.

Thank you,
Frank
0
Jack
Telerik team
answered on 05 Sep 2007, 04:39 PM
Hi Frank,

Yes, you can update the grid's visual state by calling GridElement.Update directly after setting CureentRow. See the code below:

this.radGridView1.CurrentRow = this.radGridView1.Rows[5];
this.radGridView1.GridElement.Update(false);

Regards,
Jack
the Telerik team

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