Hi Julie,
Normally this issue happens in the following reasons:
1) Recursive calls of the QueryCellInfo Event Handler
2) Are you using multiple threads? If so accessing the grid on a different thread might cause this
3) If you are trying to swap/change a datasource for combobox columns when there was an active cell in the column that causes this issue.
4) If you are binding to any empty table that causing this issue
Here is a sample that causing this issue (Recursive call of the Query cellinfo).
GridCrasher_653.zipStep to reproduce the issue:
1)Double click the Rating Column cells
2)Double click the Cell(0,0) that causing the issue.
In the grid control, rowindex = -1 and colindex = -1 represents the table style. So you should wrap your code in the QueryCellInfo by checking this. Or else the style properties that are provided in the QueryCellInfo will try to apply for the entire table and this might lead to recursive calls of the QueryCellInfo. I think this is the cause of the problem.
private void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
if(e.RowIndex > -1 && e.ColIndex > -1)
{
/// CODE
///
}
}
Here is a modified sample.
RedXExceptionSample.zipPlease let me know if this helps.
Best regards,
Haneef