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

selections and databound grid with rowcount = 0

Thread ID:

Created:

Updated:

Platform:

Replies:

16916 Jul 27,2004 10:21 AM Jul 27,2004 11:11 AM Windows Forms 1
loading
Tags: GridControl
Scott Lundgren
Asked On July 27, 2004 10:21 AM

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 11:11 AM

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.

CONFIRMATION

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.

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.

;