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

Inner Grid row selection Hierarchical Grid

2 Answers 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Håkan
Top achievements
Rank 1
Håkan asked on 12 Aug 2012, 10:26 PM
Hi  All,

We are not used the built in Edit and Delete function given by the telerik, in hierarchical grid. But we need to capture the values in the child table(<telerik:GridTableView> ), Before delete or edit we need to load the data in to our own form. To do that how can we get the cell values in a selected row in a child table(child grid).

Development Team. 

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 13 Aug 2012, 05:31 AM
Hi,

You can loop through the selected items and get the selected values.
C#:
protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
{
 foreach (GridDataItem item in RadGrid1.SelectedItems)
 {
  if (item.OwnerTableView.Name == "DetailTable1")
   {
     string value = item["UniqueName"].Text;
   }
 }
}

Thanks,
Princy.
0
Håkan
Top achievements
Rank 1
answered on 13 Aug 2012, 07:43 AM

Hi Princy,

Thanks a lot, It is working.

Development Team

Tags
Grid
Asked by
Håkan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Håkan
Top achievements
Rank 1
Share this question
or