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 » Keeping EditString content in gridctrl
Re: Keeping EditString content in gridctrl [message #30118 is a reply to message #29880] Thu, 09 December 2010 20:38 Go to previous message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi

I reply to myself as sometimes some effort given to this marvelous tool that is U++ can lead to solution by oneself. The way is to create a tab of EditString and to assign it to the first column (column 0)to be edited on the selected line :

Array<EditString> editSkill;
Array<EditIntSpin> levelEdit;
editSkill.Add();

for(int i=0;i< qsGridCtrl.GetColumnCount()-1;i++)levelEdit.Add().MinMax(0,3 );

qsGridCtrl.GetColumn(0).Edit(editSkill.At(0));

for(int p=1;p< qsGridCtrl.GetColumnCount();p++)qsGridCtrl.GetColumn(p).Edit (levelEdit.At(p-1));

qsGridCtrl.StartEdit();


That works perfectly so this topic is closed. Hoping this could help other developers.

Regards
Biobytes
 
Read Message
Read Message
Previous Topic: UI virtualization
Next Topic: ArrayCtrl : how to forbid editing of one row ?
Goto Forum:
  


Current Time: Tue Apr 23 13:08:11 CEST 2024

Total time taken to generate the page: 0.01068 seconds