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.
Unfortunately, activation email could not send to your email. Please try again.

ColIndex value too large

Thread ID:





4726 May 28,2003 11:26 AM May 29,2003 07:38 AM Windows Forms 3
Tags: GridControl
Martin Squicciarini
Asked On May 28, 2003 11:26 AM

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?

Administrator [Syncfusion]
Replied On May 28, 2003 02: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? Stefan

Martin Squicciarini
Replied On May 29, 2003 07: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.

Administrator [Syncfusion]
Replied On May 29, 2003 07: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.


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.

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.