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

ColIndex value too large

Thread ID:





4726 May 28,2003 03:26 PM UTC May 29,2003 11:38 AM UTC WinForms 3
Tags: GridControl
Martin Squicciarini
Asked On May 28, 2003 03:26 PM UTC

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 06:51 PM UTC

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 11:34 AM UTC

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 11:38 AM UTC

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.

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

Live Chat Icon For mobile
Live Chat Icon