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::Clear() doesn't take into account SetFixedRows(2)
Re: GridCtrl::Clear() doesn't take into account SetFixedRows(2) [message #28104 is a reply to message #28039] Mon, 16 August 2010 21:37 Go to previous messageGo to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Just to make sure my code didn't change, I recompiled my program and ran the code that exposed the problem. It removed the 2nd "Fixed" row as reported. I then did a svn up on uppsrc and rebuilt my program. Now when testing I get:

Assertion failed in C:\Development....\UppSrc/Core/Vcont.hpp, line 192 q >= 0 && q <= items - count && count > 0


Now, if I put .Clear() in a condition then it works.

if (qsos.GetRowCount() > 0)
  qsos.Clear();


however you do not need to place it in a condition when you only have 1 header row. .Clear() works on an empty grid or a grid with 10,000 items. It seems that .Clear() no longer works on an empty grid.

Jeremy
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sorting problem. Please Help!
Next Topic: PopUpTable:does this ctrl exist?
Goto Forum:
  


Current Time: Mon Aug 25 22:49:36 CEST 2025

Total time taken to generate the page: 0.05952 seconds