Selected row value in radgrid

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

    Posted 13 Dec 2012 Link to this post

    I have enabled row selection in radgrid. How to access the selected item value in an external button click?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Dec 2012 Link to this post

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