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

GGC custom Expand Collapse

Hi
I am getting the following exception while I am trying to expand and collapse nested tables in GGC with custom Push Button column and I am not even able to catch this exception , Please help.

System.InvalidCastException: Specified cast is not valid.
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.SetupRecordPlusMinusCell(GridTableCellStyleInfoIdentity e, GridTableCellStyleInfo style)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.SetupStyleInfo(GridTableCellStyleInfoIdentity e, GridTableCellStyleInfo style)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.CreateTableCellStyle(Element element, Int32 rowIndex, Int32 colIndex)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.GetTableCellStyle(Int32 rowIndex, Int32 colIndex)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.GetTableViewStyleInfo(Int32 rowIndex, Int32 colIndex)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.GetViewStyleInfo(Int32 rowIndex, Int32 colIndex, Boolean forceQueryCellInfo)
at Syncfusion.Windows.Forms.Grid.GridControlBase.GetPaintStyleInfo(Int32 rowIndex, Int32 colIndex, Boolean forceQueryCellInfo)
at Syncfusion.Windows.Forms.Grid.GridPaint.LoadSpannedCell(GridControlBase pGrid, Object pds, Int32 rowIndex, Int32 colIndex)
at Syncfusion.Windows.Forms.Grid.GridPaint.InternalLoadCell(DrawStruct ds, Int32 rowIndex, Int32 colIndex)
at Syncfusion.Windows.Forms.Grid.GridPaint.DrawClientRowCol(Int32 topRow, Int32 leftCol, Int32 bottomRow, Int32 rightCol, Graphics g, Rectangle rectClip)
catched at Syncfusion.Windows.Forms.Grid.GridPaint.DrawClientRowCol(Int32 topRow, Int32 leftCol, Int32 bottomRow, Int32 rightCol, Graphics g, Rectangle rectClip) in :line 0

1 Reply

AD Administrator Syncfusion Team August 14, 2006 05:15 AM UTC

Hi Sivaiah,

Please try the attached sample that works fine on my system which has "Essential Studio 4.2 +.Net FrameWork 1.1/2.0+windows XP" installed . Let us know if you face any other issues.

Here is a sample
http://www.syncfusion.com/Support/user/uploads/CaptionPluasMinus_11be64f9.zip

Thanks for choosing Syncfusion products.
Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon