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

Set and Get Row By Row Number

2 Answers 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
meraj
Top achievements
Rank 1
meraj asked on 01 Mar 2011, 08:11 AM
Hi,
   is there any way to set and and grid row like this example given below

1)   Dim RowNum As Integer=grd.Row
2)   grd.Row=i

* Where Row is grid property which gives row number
* where i is an integer like 1,2,3,.................................

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 01 Mar 2011, 09:22 AM
Hello Meraj,

You can just use the following:
var rowindex = radGridView1.CurrentRow.Index;
radGridView1.CurrentRow = radGridView1.Rows[rowindex];

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
meraj
Top achievements
Rank 1
answered on 01 Mar 2011, 12:38 PM
Thanx for help .Its working fine.
Tags
GridView
Asked by
meraj
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
meraj
Top achievements
Rank 1
Share this question
or