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.

Error Message

Thread ID:

Created:

Updated:

Platform:

Replies:

5305 Jun 27,2003 04:11 PM Jun 28,2003 03:48 AM Windows Forms 5
loading
Tags: GridControl
Alexandre Nicholas
Asked On June 27, 2003 04:11 PM

Each time i use the GridModelSelections.GetSelectedRows() when there are no selections, i have this error : See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Syncfusion.Windows.Forms.Grid.GridRangeInfoList.GetRowRanges(GridRangeInfoType filter) at Syncfusion.Windows.Forms.Grid.GridModelSelections.GetSelectedRows(Boolean bRangeRowsOnly, Boolean considerCurrentCell) Is there a way to know if my gridcontrol has some selections done ? thanks

Alexandre Nicholas
Replied On June 27, 2003 04:13 PM

I have set the ListBoxSelectionMode to emulate ListBoxes

Administrator [Syncfusion]
Replied On June 27, 2003 05:38 PM

You can check Me.GridControl1.Selections.Count to see if there are any selections. Will this work for you?

Alexandre Nicholas
Replied On June 28, 2003 01:58 AM

Ok thanks a lot, this "patch" is working :-) but i think, you should fix this bug :-) bye > You can check Me.GridControl1.Selections.Count to see if there are any selections. Will this work for you? >

Alexandre Nicholas
Replied On June 28, 2003 02:32 AM

the patch does not work the Selection.count says '1' but the Selections.GetSelectedRows(true, false) gives me the error. i don't understand the problem . do i am wrong ? thanks

Alexandre Nicholas
Replied On June 28, 2003 03:48 AM

i found why there is this problem When you Set your GridControl to RowCount = 0, the Selection is not cleared. Please fix this bug thanks It was ther 1.5.2 version > the patch does not work > > the Selection.count says '1' but the Selections.GetSelectedRows(true, false) gives me the error. > > i don't understand the problem . do i am wrong ? > > thanks

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.

;