Tommy,
I have tested the code and with
row.DetailGrids.Count > 0
you know if the current row has detailgrids defined (always have), but to really see if there is child data in the row i have to add
if (row.DetailGrids[0].DataRows.Count > 0)
so the code is:
Xceed.Grid.DataRow row = (Xceed.Grid.DataRow)grid.CurrentRow;
if (row != null)
{
if (row.DetailGrids.Count > 0)
{
if (row.DetailGrids[0].DataRows.Count > 0)
bHasChildres = true;
}
}
Thanks.
Imported from legacy forums. Posted by Javier (had 3994 views)