We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Clicked on actual data?

Hello- 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? Thank You

1 Reply

AD Administrator Syncfusion Team February 13, 2003 07:03 PM UTC

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. Stefan

Live Chat Icon For mobile
Up arrow icon