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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

selections and databound grid with rowcount = 0

Thread ID:





16916 Jul 27,2004 02:21 PM UTC Jul 27,2004 03:11 PM UTC WinForms 1
Tags: GridControl
Scott Lundgren
Asked On July 27, 2004 02:21 PM UTC

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

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon