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.
Syncfusion Feedback

Error Message

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 08:13 PM UTC

I have set the ListBoxSelectionMode to emulate ListBoxes

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

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 05:58 AM UTC

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 06:32 AM UTC

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 07:48 AM UTC

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.

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

;