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 » GridCtrl: assign default value & WhenAcceptRow
GridCtrl: assign default value & WhenAcceptRow [message #33541] Mon, 22 August 2011 10:22 Go to previous message
forlano is currently offline  forlano
Messages: 1085
Registered: March 2006
Location: Italy
Experienced Contributor
Hello,

I have two question about GridCtrl with embedded ctrls via .Edit():

1) is there a way to assign a default value when creating a new row? With ArrayCtrl exists InsertValue(...), for axample:

array.AddColumn(COUNTRY,"Country").Edit(country).InsertValue(12);

Is there an equivalent/alternative way?

2) before the row is accepted I want to check its data and eventually refuse them and force the user to continue the edit task.
I used the WhenAcceptRow to perform the checking (as done with ArrayCtrl but there it is a Gate - Confused ). Unfortunatly the row is always accepted.
Which is the suggested method with GridCtrl to validate the data?
This one works for ArrayCtrl but with GridCtrl complain about 'bool' returning value of the callback.

Thanks,
Luigi

[Updated on: Mon, 22 August 2011 10:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl and FileSel.ExecuteOK
Next Topic: GridCtrl and WhenMenuBar
Goto Forum:
  


Current Time: Mon Mar 30 10:05:39 CEST 2020

Total time taken to generate the page: 0.01436 seconds