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.
I have implemented custom CellModel (using an example from syncfusion) a long time ago. I was playing around with the GridControl, in which the new CellModel is hosted. Playing around means.. right clicking and double clicking frequently. When I saw the application log, it was showing this exception. Please comment on it. Is their any workaround for it.
-----------------------
System.NullReferenceException: Object reference not set to an instance
of an object.
at Syncfusion.Windows.Forms.Grid.GridModelFloatingCells.CanFloatCell
(GridCellModelBase cellModel, Int32 rowIndex, Int32 colIndex, GridStyleInfo
style, GridQueryFloatCell query)
at Syncfusion.Windows.Forms.Grid.GridModelFloatingCells.FloatCell(Int32
rowIndex, Int32 colIndex, GridRangeInfo& boundsInfo)
at
Syncfusion.Windows.Forms.Grid.GridModelFloatingCells.EvalDelayedFloatCells
(GridRangeInfo range, GridRangeInfo& boundsInfo)
at
Syncfusion.Windows.Forms.Grid.GridModelFloatingCells.EvaluateFloatingCells
(GridRangeInfo range, GridRangeInfo& boundsInfo)
at
Syncfusion.Windows.Forms.Grid.GridModelFloatingCells.EvaluateFloatingCells
(GridRangeInfo range)
at Syncfusion.Windows.Forms.Grid.GridControlBase.set_GridBounds(Rectangle
value)
at Syncfusion.Windows.Forms.Grid.GridControlBase.DrawGrid(Graphics g,
Rectangle bounds, Boolean drawCurrentCell)
at XTreme.BO.GUI.GridInCellRenderer.OnDraw(Graphics g, Rectangle
clientRectangle, Int32 rowIndex, Int32 colIndex, GridStyleInfo style)
------------------------------------
I am using Syncfusion 1.6.1.8
ADAdministrator Syncfusion Team May 2, 2005 03:15 PM UTC
I searched both our forums and our Direct Trac database to see if anyone else has reported a callstack that included Syncfusion.Windows.Forms.Grid.GridModelFloatingCells.CanFloatCell, and could not find any hits on the method.
If you are not using floating cells, then you can try explicitly setting
Me.grid.FloatCellsMode = GridFloatCellsMode.None
to see if that affects this problem.
If you own our source code, you can use teh Assembly Manager to build debug versions of our libraries so you can step into our code to see exactly what is null in that method.