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 » Some petitions for GridCtrl
Re: Some petitions for GridCtrl [message #28896 is a reply to message #27167] Fri, 24 September 2010 13:21 Go to previous messageGo to previous message
sevenjay is currently offline  sevenjay
Messages: 30
Registered: October 2008
Location: Taiwan
Member
Hi,
I have the other petition.
It's like koldo's first one.
Giving a column Id, it returns its column index.
It's convenient for me because my column names sometimes change.
I write this:
int GridCtrl::FindCol(const Id& id) const
{
    for(int i = fixed_cols; i < total_cols; i++)
        if(aliases.GetKey(i) == id)
            return i - fixed_cols;
    return -1;
}
hope this useful
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl changed add row behavior
Next Topic: UI virtualization
Goto Forum:
  


Current Time: Mon Sep 21 18:28:06 CEST 2020

Total time taken to generate the page: 0.01399 seconds