Hi ,
I have Hierarchical Gridview. When loading i loop all of the rows:
foreach(var row in datagridview1.Rows)
{
if(row.Type == "Childrend")
{
var parentRow = row.Parent as GridViewRowInfo; <----- it returns Null
}
}
How can i get parent Row of child Row when loading ? Now at the childRow, i can get the parent Id and i have to loop all of the gridview again to find the parent row by ParentId .