What would be the best way to determine if, from within the MouseUp event, a row containing actual data was clicked on? i.e. whether or not the empty row spaces after the last row was clicked?
Along the same lines: what would be the best way to determine how many rows are currently visible in the grid? Will Model.RowCount include filtered rows?
ADAdministrator Syncfusion Team February 13, 2003 02:03 PM
Model.RowCount does not include filtered rows. It is just the number of all records that are shown in the grid.
Grid.ViewLayout.VisibleRows returns the number of visible rows in the current view. I mean here the number of rows that are actually shown and not scrolled out of view ...
Use Grid.PointToRangeInfo(pt, -1) to find out if the clicked point is below or right of the grid. It will return GridRangeInfo.Empty in that case.