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 » Row numbering inconsistency
Row numbering inconsistency [message #12461] Sat, 03 November 2007 15:33 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi Daniel,

I am looking to be able to make an interface in which users can effectively edit their column headers so I am intending to hide the real column headers and create a zero row which looks like a column header but is editable.

I noticed that GridCtrl::HideRow(0) hides the column headers which is great but that GridCtrl.GetRow(1).SetFont(StdFont().Bold()) changes the 2nd row to bold and this is what I would expect as the GridCtrl contents are addressed from a zero index. However,this means that HideRow and GetRow are working with different numbering systems. What say you? I know that I can easily work around this and I will but shouldn't the numbering be consistent? I suggest a separate function to hide the column headers.

Also, now you know what I'm trying to do, is there a better way please? Ideally I would have real editable column headers with their own edit controls as this would allow me to sort the contents still using your sort rather than having to write my own. Plus, I'm not sure how to get my fake column headers to look like your swanky ones Smile

Nick

p.s. on second thoughts fixing this would break lots of people's code so maybe its not worth it. I've noticed though that there are other functions which refer to the headers as the zeroth row such as SetFixed() and so on. Perhaps the headers could be the -1 row?


[Updated on: Sat, 03 November 2007 15:56]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Selecting a cell in gridctrl
Next Topic: RemoveLast() crash when cell selected
Goto Forum:
  


Current Time: Mon Apr 29 13:36:22 CEST 2024

Total time taken to generate the page: 0.02558 seconds