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 » large ArrayCtrl
Re: large ArrayCtrl [message #471 is a reply to message #470] Wed, 04 January 2006 14:48 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
Yes. Of course, it is not as trivial as having data directly stored.

The idea is this - instead of storing the "real" data, you use "RowNum" columns. Value of those columns is equal to the index of arrayctrl line.

Column& AddRowNumColumn(const char *text, int w = 0);


Now you can provide Display and Convert for those columns. Therefore, the thing you need is to provide Convert that converts your line index to the real data (found elsewhere).

For more columns, you will likely have to one Convert object per column (often you will be able to solve it with single Convert class and attribute, e.g. database column ID).

The last thing to make it work - instead of adding rows to arrayctrl, assing it a "virtual line count".

void SetVirtualCount(int c);
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HomeBudget or DropGrid bug (svn 634)?
Next Topic: Scroll bars and grid ?
Goto Forum:
  


Current Time: Fri Jul 18 11:42:02 CEST 2025

Total time taken to generate the page: 0.03899 seconds