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

Loop through selected items

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 04 Jul 2012, 06:47 AM
How to loop through selected items in radgrid in external button click and retrieve their cell value?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Jul 2012, 07:36 AM
Hello,

Try the following code to achieve your scenario.
C#:
protected void Button1_Click(object sender, EventArgs e)
{
 foreach (GridDataItem item in RadGrid1.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