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

selections and databound grid with rowcount = 0

Given the following: _DataGrid.Model.RowCount 0 _DataGrid.Selections.Count 1 _DataGrid.CurrentCell.RowIndex 1 What am I missing? With now rows, I would have thought that the count of my selections would be zero, and that the current cell''s rowindex would be something other than 1, which does not exist. Scott

1 Reply

AD Administrator Syncfusion Team July 27, 2004 03:11 PM UTC

The grid.Model.RowCount = 0 says something about the row count. It does not necessarily infer anything about other grid properties. How the RowCount gets to be zero may affect the properties you listed. The grid will not auto adjust teh grid.Selections collection is you programatically delete rows from your datasource. So, if you need these values to be reset, you will have to explicilty reset them as just setting teh RowCount = 0 will not necessarily affect them.

Live Chat Icon For mobile
Up arrow icon