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  |
|
Yes, I know gridctrl is a big piece of code now without proper documentation. That will change soon (I hope ).
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
|
|
|
Goto Forum:
Current Time: Sun Jun 22 15:54:04 CEST 2025
Total time taken to generate the page: 0.03935 seconds
|