I'm trying to figure out how to remove rows from the child template of a on-demand loaded child. I can do this no problem with a standard command button on the Master template, but the child doesn't want to make the row go away....
private void uiProductsGrid_CommandCellClick(object sender, EventArgs e) { GridCommandCellElement button = (GridCommandCellElement) sender; if (button.RowInfo.HierarchyLevel == 1) { DataRowView drv = (DataRowView)button.RowInfo.DataBoundItem; Guid id = (Guid)drv["Id"]; Selection.DeleteSelection(id); button.MasterTemplate.Rows.Remove(button.RowInfo); return; } if (button.RowInfo.HierarchyLevel ==2) { Guid id = Guid.Parse(button.RowInfo.Cells["Id"].Value.ToString()); Product.DeleteProduct(id); // What do I put here to remove this row from the grid??? return; } }