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

How to set select index in Gridview

2 Answers 143 Views
GridView
This is a migrated thread and some comments may be shown as answers.
KK
Top achievements
Rank 1
KK asked on 23 Jul 2010, 04:27 AM
I use this code

radGridView1.MasterGridViewInfo.CurrentIndex ,but this property do not have setter, So Anyone know a way to set index

like
GridView.selectIndex = 1;  

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 23 Jul 2010, 07:47 AM
Hello,

I don't really understand the question, do you want to set the selected row?

If yes, you can just set
this
.radGridView1.Rows[pos].IsSelected = true;

If this is not what you are searching for please provide further details about what you are trying to do

Emanuel
0
KK
Top achievements
Rank 1
answered on 23 Jul 2010, 08:35 AM
Thank you, I got my solution

Just notice that 

.IsCurrent is used for setting index
Tags
GridView
Asked by
KK
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
KK
Top achievements
Rank 1
Share this question
or