Home » U++ Library support » U++ Library : Other (not classified elsewhere) » minimalist example with GridCtrl
Re: minimalist example with GridCtrl [message #6456 is a reply to message #6451] |
Mon, 13 November 2006 10:48   |
|
forlano wrote on Mon, 13 November 2006 03:32 | Hello,
I've done some experiment with the GridCtrl I got from the Nico's application.
The gridctrl looks great but I wonder if it has some capability of the arrayctrl. For example can I add a droplist or a toggle button to a column?
Moreover, I was able to let appear the control but not to edit its cells. I used several options but the edit was not possibile. I would like to know if there is a very little piece of code that set a gridctrl with all the cells editable.
Thank you
Luigi
|
Yes it is possible. Just do:
EditString edit;
DropList drop;
grid.AddColumn("c0").Edit(edit);
grid.AddColumn("c1").Edit(drop);
That should be enough. I don't remember what edit mode was set as default in 0.95 version. But to edit row (all ctontrols are visible) add grid.EditMode(0). In that mode controls becom visible if you press enter or make double click on row.
Please paste your code here (or send it to me) so I could check it.
New version of grid has support for "control in every cell" mode and a tutorial. I will public it very soon.
|
|
|
Goto Forum:
Current Time: Fri Jun 27 21:52:28 CEST 2025
Total time taken to generate the page: 0.05676 seconds
|