Hi,
I have a hierarchy in the gridtable view.
Now I want to get the childrows of the selected items in the mastergridviewtemplate.
Like this:
foreach (var masterrow in rgvAdserverNetwork.MasterGridViewTemplate.Rows) |
{ |
var childRows = masterrow.ViewTemplate.ChildGridViewTemplates[0].GetChildRows(masterrow); |
foreach( var child in childRows) |
{ |
foreach(GridViewCellInfo cell in child.Cells) |
{ |
Console.WriteLine(cell.Value); |
} |
} |
} |
Now I get an NullReference on the cell.Value.
When I look in de debugger the child.Cells.Count is triggering this.
What am I doing wrong here?
Tried several things, everytime the same error...
Thanks a lot in advance