The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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.