Hi,
I have a radgrid with master-child relationship.
When i click on a button, i need to loop thru the grid and get the parent items first and then its related child items.
I have a radgrid with master-child relationship.
When i click on a button, i need to loop thru the grid and get the parent items first and then its related child items.
foreach
(GridDataItem dataItem in uiProtectionGroupProductsGrid.Items)
{
if (dataItem.OwnerTableView.Name != "childtablename")
{
obj =
new ProtectionGroupProductsDto();
protectionGroupProductsDto.Id =
Convert.ToInt32(dataItem["Id"].Text);
protectionGroupProductsDto.name =
Convert.ToString(dataItem["name"].Text);
protectionGroupProductsDto.age=
Convert.ToInt32(dataItem["age"].Text);
//HERE I WANT TO LOOP THE Child table of the above parent item
}
}
Does anyone have any idea on this?
Regards
Sujith