The following code in C# works for my sample:
for(int i = 0; i < HG1.Items.Count; i++){ HierarGrid c = (HierarGrid) HG1.Items[i].Cells[1].FindControl("DCP").FindControl("Panel_Author_Title").FindControl("ChildTemplate_Author_Title").FindControl("HG1"); for(int j = 0; j < c.Items.Count; j++) { string title = c.Items[j].Cells[2].Text; }}
Remark: “Author_Title” is the name of the DataRelation that I am using.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2008, Denis Bauer