Home » U++ Library support » U++ Library : Other (not classified elsewhere) » minimalist example with GridCtrl
Re: minimalist example with GridCtrl [message #6469 is a reply to message #6468] |
Mon, 13 November 2006 19:26   |
|
forlano wrote on Mon, 13 November 2006 12:56 |
What I am missing?
Luigi
|
You didn't read my answer carefully GridCtrl is very similar to ArrayCtrl. You must bind a column with an edit control.
Your code should like this:
...
gc.Inserting();
gc.Appending();
gc.Moving();
gc.Removing();
gc.Navigating();
gc.Searching();
gc.Editing();
EditString name, fed, rtg, title;
gc.AddColumn("name",19).Edit(name);
gc.AddColumn("fed",4).Edit(fed);
gc.AddColumn("rtg",4).Edit(rtg);
gc.AddColumn("title",4).Edit(title);
for (i=0; i<4; i++) gc.Add("0","0","0","0");
Of course all edits should be declared in your dialog class scope (not like in the coode above in constructor).
Hope that will help you
[Updated on: Mon, 13 November 2006 19:27] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Jun 27 22:01:04 CEST 2025
Total time taken to generate the page: 0.05355 seconds
|