Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl problem
Re: GridCtrl problem [message #21351 is a reply to message #21015] Thu, 14 May 2009 13:56 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

koldo wrote on Sat, 25 April 2009 11:12

Hello unodgs

It is difficult for me to find the root cause. I have got the exception in three places, always trying to access hitems[] elems over its scope and always when moving the mouse over the Grid time after the Grid is filled with data.

I suppose this is circumstantial, but I usually use grids with few rows but hundreds of columns.

I have began to enclose the code with problems with
	if (hitems.GetCount() > hcol) {
	...
	}
This is not the solution but it lets me follow.

Best regards
Koldo

This is workaround. The problem is hcol should never point to not existing column. I guess the problem is in GetMouseCol. Could you pleas post workable test case similar to your real app?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I setup right collating sequence in GridCtrl?
Next Topic: Can gridctrl remember row column sizes & other questions
Goto Forum:
  


Current Time: Mon Aug 25 18:01:17 CEST 2025

Total time taken to generate the page: 0.05404 seconds