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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Query Cell Info events and recursive calls

Thread ID:





53079 Dec 7,2006 07:12 PM UTC Dec 8,2006 02:45 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On December 7, 2006 07:12 PM UTC

I'm trying to trigger an event from a checkbox and display the 'check'. I used your query cell info example but no matter what I do I get this recursive call error:

System.InvalidOperationException: Recursive call detected. When accessing grid cell objects from a QueryCellInfo event handler make sure you do not recursively access the same cell.

Even if I just hover over the grid, I get this issue. Is there a more straightforward way to just check the cell GDBG[row, col].checked = true? I've been trying to unravel this for days with no luck.

Administrator [Syncfusion]
Replied On December 8, 2006 09:46 AM UTC

I am sorry, but it is not clear to me what you are trying to do.

In general, you cannot use code like grid[row,col] in QueryCellInfo because just indexing the grid triggers calls to QueryCellInfo.

Here is a little sample the displays the value of a CheckBox column in a Label on the Form anytime QueryCellInfo is requesting a cell in that column. You get the value from the e.Style that is passed in through the event args (and not from indexing the grid).


If this is not enough information to allow you to do what you want, if you can explain further what you are trying to do, or if you can upload a sample and explain what is not working in your sample, maybe we can suggest something else.

Administrator [Syncfusion]
Replied On December 8, 2006 09:57 AM UTC

Hi ,
You can use the CheckBoxClick event to catch the action of checking/unchecking a checkbox.

private void gridDataBoundGrid1_CheckBoxClick(object sender, Syncfusion.Windows.Forms.Grid.GridCellClickEventArgs e)
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
Console.WriteLine(this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex].Text);

Here is a small sample:
Best Regards,

Administrator [Syncfusion]
Replied On December 8, 2006 02:45 PM UTC

Thank you Jeba and Clay - With your help, I found the problem.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon