The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
I have set the ListBoxSelectionMode to emulate ListBoxes
ADAdministrator Syncfusion Team 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?
ANAlexandre NicholasJune 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?
>
ANAlexandre NicholasJune 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
ANAlexandre NicholasJune 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