AD
Administrator
Syncfusion Team
September 29, 2003 06:44 PM UTC
To determine the area below the last visible row use the RectangleBottomOfRow method. E.g.
Rectangle r;
if (IsRowVisible(RowCount))
{
r = RectangleBottomOfRow(RowCount);
Invalidate(r);
}
BTW - How do you hide the rows? If you hide them just by turning flags in an external data source and you have a underlying row to grid row mapping, then you can also force the grid to refresh the affected area with gridModel.Rows.OnRangeInserting before resetting the flag when expanding rows and gridModel.Rows.OnRangeRemoved method calls after resetting the flag when hiding rows.
Stefan