In our handler for QueryCellInfo e.ColIndex takes on a value of either 162277 or 6250 which is much larger than the number of columns on the grid. Using V1.5.2 of the grid.
Here is the sub definition
Private Sub GridQueryCellInfo(ByVal sender As Object, ByVal e As GridQueryCellInfoEventArgs)
Is this a bug?
ADAdministrator Syncfusion Team May 28, 2003 01:51 PM
I can't explain why this would happen other than that form some reason a call was triggered to query for a cell at that row.
Can you set a breakpoint and find out who triggered the call?
MSMartin SquicciariniMay 29, 2003 06:34 AM
I should have also mentioned that the grid only has 120 columns and 200 rows. I will set a break point and check the call stack to see where it is being called.
ADAdministrator Syncfusion Team May 29, 2003 06:38 AM
Are you using multithreads in this application?
If so, you need to protect calls into the grid with grid.InvokeRequired checks (or something like that) to make sure you are only accessing the grid on the UI thread. Getting mysterious (invalid) values in method calls is one symptom of this type of problem.