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

Selected row value in radgrid

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 13 Dec 2012, 10:04 AM
I have enabled row selection in radgrid. How to access the selected item value in an external button click?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Dec 2012, 10:12 AM
Hi,

Try the following code.
C#:
protected void Button1_Click(object sender, EventArgs e)
{
 foreach (GridDataItem item in RadGrid2.SelectedItems)
 {
    string value = item["Uniquename"].Text;
 }
}

Thanks,
Shinu.
Tags
General Discussions
Asked by
Tina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or