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 » Problems with ArrayCtrl, GridCtrl in my app
Re: Problems with ArrayCtrl, GridCtrl in my app [message #14168 is a reply to message #14156] Sat, 16 February 2008 20:50 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Yes, I know gridctrl is a big piece of code now without proper documentation. That will change soon (I hope Smile ).
Anyway, the easiest way to add deleting capability is to write
grid.Removing(). Since then you just open popup menu on given row and choose delete. What's more write grid.SetToolbar() to get internal toolbar with remove button visible. Internal removing operation works properly in multiselection mode and also it takes care of cursor postioning after deleting.
Remove, Insert, Append method are "raw methods" what means you have to be careful of passed parameters values.
You can also assign all this to your remove button. Just call grid.DoRemove() in it's callback.

[Updated on: Sat, 16 February 2008 20:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl - How to Cancel EditMode? And other Problem
Next Topic: Problem w/ HeaderCtrl.SetPaper() in my app.
Goto Forum:
  


Current Time: Mon Jun 23 00:02:00 CEST 2025

Total time taken to generate the page: 0.04980 seconds