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

Error Message

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

5 Replies

AN Alexandre Nicholas June 27, 2003 04:13 PM

I have set the ListBoxSelectionMode to emulate ListBoxes


AD Administrator Syncfusion Team 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?


AN Alexandre Nicholas 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? >


AN Alexandre Nicholas 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


AN Alexandre Nicholas 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

Loader.
Live Chat Icon For mobile
Up arrow icon