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::Reset does not reset.
Re: GridCtrl::Reset does not reset. [message #25707 is a reply to message #25703] Mon, 08 March 2010 22:00 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Reset works fine. I wrote about this column problem many times here (this means I have to redesign it as it's not intuitive Smile).
Just put all your AddColumns between following method calls:
grid.Ready(false);
grid.AddColumn(...);
grid.AddColumn(...);
grid.Ready(true);

This display mess happens only in proportional mode and only if grid is visible on the screen. It is so because each AddColumn recalculates columns proportions being not aware of next AddColumn calls. I'll put this issue on my todo list.
 
Read Message
Read Message
Read Message
Previous Topic: Calculate needed cell width to fit some text
Next Topic: Proposal: add WhenScroll to ArrayCtrl
Goto Forum:
  


Current Time: Tue Aug 26 00:07:34 CEST 2025

Total time taken to generate the page: 0.05882 seconds