How to get item from selected row in RadGrid

2 posts, 0 answers
  1. Shahid
    Shahid avatar
    3 posts
    Member since:
    Jan 2010

    Posted 30 Aug 2012 Link to this post


    I created a RadGrid control which shows up list of items from SharePoint List. Now how to get that selected row or just a single column of that selected row from that RadGrid view in to a label or string.

  2. Pavlina
    Pavlina avatar
    6069 posts

    Posted 03 Sep 2012 Link to this post

    Hi Shahid,

    Just set ClientSettings.EnablePostBackOnRowClick to true for the grid, attach an event handler to the grid's ItemCommand event and therein use the following code:

    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) 
        if (e.CommandName == "RowClick"
            Hashtable columnValues = new Hashtable(); 

    Hope it helps.

    the Telerik team

Back to Top