Friday, July 20, 2012

Find selected row of RadGrid on buttonclick


 protected void btn_submit_Click(object sender, EventArgs e)
    {

        foreach (GridDataItem item in RadGrid1.SelectedItems)
        {          
            string custoID = item.GetDataKeyValue("Branch_code").ToString(); //you have to set DataKeyNames value to the column whose value you have to find
        }
    }