Hi,
since we are using Syncfusion v.2.1.0.15 including the patch 2.1.15 the following
code doesn''t work anymore:
// first increase the rowcount (grid now hast 2 rows)
gridControlFundAttributes.RowCount++;
// indexToStart is 2
gridControlFundAttributes.Rows.Hidden[indexToStart] = true;
gridControlFundAttributes[indexToStart, 1].HorizontalAlignment = GridHorizontalAlignment.Left;
gridControlFundAttributes[indexToStart, 1].BackColor = FISConstants.GridDataColor;
gridControlFundAttributes[indexToStart, 1].Font.Bold = true;
gridControlFundAttributes[indexToStart, 1].Text = allGroupData.Name;
// this statement produces the following error:
// allGroupData is a business object
gridControlFundAttributes[indexToStart, 0].Tag = allGroupData;
the stack trace produces the following error:
Caught an exception:
>>>
>>> Object reference not set to an instance of an object.
>>>
>>> at Syncfusion.Windows.Forms.Grid.GridModel.SetCellInfo(Int32 rowIndex, Int32 colIndex, GridStyleInfo style, StyleModifyType modifyType, Boolean dontRaiseSaveCellInfoEvent, Boolean copyReferenceOnly)
>>> at Syncfusion.Windows.Forms.Grid.GridModel.SetCellInfo(Int32 rowIndex, Int32 colIndex, GridStyleInfo style, StyleModifyType modifyType)
>>> at Syncfusion.Windows.Forms.Grid.GridModel.ChangeCells(GridRangeInfo range, GridStyleInfo[] cellsInfo, StyleModifyType modifyType)
>>> at Syncfusion.Windows.Forms.Grid.GridModel.Syncfusion.Windows.Forms.Grid.IGridVolatileDataContainer.ChangeCell(Int32 rowIndex, Int32 colIndex, GridStyleInfo style)
>>> at Syncfusion.Windows.Forms.Grid.GridVolatileData.set_Item(Int32 rowIndex, Int32 colIndex, GridStyleInfo value)
>>> at Syncfusion.Windows.Forms.Grid.GridStyleInfoIdentity.OnStyleChanged(StyleInfoBase style, StyleInfoProperty sip)
>>> at Syncfusion.Styles.StyleInfoBase.OnStyleChanged(StyleInfoProperty sip)
>>> at Syncfusion.Windows.Forms.Grid.GridStyleInfo.OnStyleChanged(StyleInfoProperty sip)
>>> at Syncfusion.Styles.StyleInfoBase.SetValue(StyleInfoProperty sip, Object value)
>>> at Syncfusion.Windows.Forms.Grid.GridStyleInfo.set_Tag(Object value)
Any hints, tips, fixes I would appreciate - because it definitely worked before v.2.1.0.15.
Thanks in advance
Michael Mann