Loop through selected items

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 04 Jul 2012 Link to this post

    How to loop through selected items in radgrid in external button click and retrieve their cell value?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Jul 2012 Link to this post

    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.
Back to Top