I am attaching IsSelectedChanged event handlers to GridControl and DetailGrid rows at runtime as shown below, but the DetailGrid row event never gets fired. Why?
I am using version 2.1 and have not used the designer (ie. the grid is created in code)
Thanks
kh
foreach(Xceed.Grid.DataRow row in grid.DataRows)
{
// Always fires
row.IsSelectedChanged+=new EventHandler(row_IsSelectedChanged);
foreach(Xceed.Grid.DetailGrid detailGrid in row.DetailGrids)
{
foreach(Xceed.Grid.DataRow detailRow in detailGrid.DataRows)
{
// Never fires
detailRow.IsSelectedChanged+=new EventHandler(detailRow_IsSelectedChanged);
}
}
}
Imported from legacy forums. Posted by kh (had 1847 views)