AnsweredAssumed Answered

AW: vrf DataTable DataGrid

Question asked by VRFuser on Aug 14, 2008
Hello,
 
I know about the ThreeState of Checkboxes. But with the DataTable, Data type Boolean, there is no ThreeState. How can I tell the boolean columns in the DataTable to be either checked or unchecked and make the indeterminate state impossible?
 
There is another question I have: how can I change the width of the columns in a DataTable?
 
 
Mit freundlichen Grüßen
i. A. Claudia Willging
-----------------------------------------------------------------------------------------
Dr. Claudia Willging
KRIWAN Testzentrum GmbH & Co. KG
Teslastr. 2, D-74670 Forchtenberg
Tel.: (07947) 9150-0 (Durchwahl 9365) Fax: (07947) 9150-50
claudia.willging@KRIWAN-Testzentrum.de
-----Ursprüngliche Nachricht-----
Von: GUO,ZHIJIN (A-China,ex1) [mailto:zhijin_guo@agilent.com]
Gesendet: Donnerstag, 14. August 2008 12:03
An: VRF
Betreff: RE: [vrf] DataTable DataGrid


Hi,
 
You may reference example: Examples/DotNetControls/CheckBox.vee for more detailed use of CheckBox in VEE


Data table will do nothing on Checkbox, its only checkbox its own behavior,  that means if you can use it in normal check box, it will also can be used when it is added to DataTable.
 
BTW, About “ThreeState”, there is a Remakrs in MSDN:
If the ThreeState property is set to false, the CheckState property value can only be set to CheckState.Indeterminate in code and not by user interaction.



Checked
The CheckBox displays a check mark.
The control appears sunken.
Unchecked
The CheckBox is empty.
The control appears raised.
Indeterminate
The CheckBox displays a check mark and is shaded.
The control appears flat.



I think your checkbox is Greyed maybe because you set ThreeState = true, and CheckState = CheckState.Indeterminate.

Best wishes,
Zhijin GUO

  _____  

From: Willging, Claudia [mailto:claudia.willging@kriwan-testzentrum.de]
Sent: Thursday, August 14, 2008 5:28 PM
To: PDL-LISTS,VRF (A-Lists,unix1)
Subject: AW: [vrf] DataTable DataGrid
 
Hi Zhijin,
 
thank you! I used: DataColumn.DefaultValue = asVariantBool(false); and it works, so I can create empty checkboxes for a start. What I would like to do is to prevent the checkboxes from the "Null" state (greyed). When I use a normal checkbox, there is the Option "ThreeState". When I say "False", then the checkbox is either checked or unchecked and nothing in between. Is there such a possibility with the data table?
 
Thanks
Claudia
Mit freundlichen Grüßen
i. A. Claudia Willging
-----------------------------------------------------------------------------------------
Dr. Claudia Willging
KRIWAN Testzentrum GmbH & Co. KG
Teslastr. 2, D-74670 Forchtenberg
Tel.: (07947) 9150-0 (Durchwahl 9365) Fax: (07947) 9150-50
claudia.willging@KRIWAN-Testzentrum.de
-----Ursprüngliche Nachricht-----
Von: GUO,ZHIJIN (A-China,ex1) [mailto:zhijin_guo@agilent.com]
Gesendet: Donnerstag, 14. August 2008 11:09
An: VRF
Betreff: RE: [vrf] DataTable DataGrid
Hi,
 
Try to use: DataColumn.DefaultValue = false;..:: it is maybe what you want.
 
Best wishes,
Zhijin GUO
 
 

  _____  

From: Willging, Claudia [mailto:claudia.willging@kriwan-testzentrum.de]
Sent: Thursday, August 14, 2008 3:30 PM
To: PDL-LISTS,VRF (A-Lists,unix1)
Subject: AW: [vrf] DataTable DataGrid
 
Hello,
 
are there no DotNet Specialists around? I found the following command for the Columns: dataColumn.AllowDBNull = asVariantBool(False); I think it`s supposed to prevent the cells from beeing "Null". Apparently the default values are "Null" when I want to add a new row to my data table, because I get an error message trying to add a new row. Does any of you know, how to change the default values of a new row?
 
Any hints are appreciated!
 
 
Mit freundlichen Grüßen
i. A. Claudia Willging
-----------------------------------------------------------------------------------------
Dr. Claudia Willging
KRIWAN Testzentrum GmbH & Co. KG
Teslastr. 2, D-74670 Forchtenberg
Tel.: (07947) 9150-0 (Durchwahl 9365) Fax: (07947) 9150-50
claudia.willging@KRIWAN-Testzentrum.de
-----Ursprüngliche Nachricht-----
Von: Willging, Claudia [mailto:claudia.willging@kriwan-testzentrum.de]
Gesendet: Dienstag, 12. August 2008 11:14
An: VRF
Betreff: [vrf] DataTable DataGrid
Hello,
finally I managed to create a table with several checkboxes and text fields with a DataTable added to a DataGrid. Now I would like to have my checkboxes either checked or unchecked, but nothing in between. Does any of you have any hints?
<<DataTableDataGrid_01.vee>>
Mit freundlichen Grüßen
i. A. Claudia Willging
-----------------------------------------------------------------------------------------
Dr. Claudia Willging
KRIWAN Testzentrum GmbH & Co. KG
Teslastr. 2, D-74670 Forchtenberg
Tel.: (07947) 9150-0 (Durchwahl 9365) Fax: (07947) 9150-50
claudia.willging@KRIWAN-Testzentrum.de


---
You are currently subscribed to vrf as: claudia.willging@kriwan-testzentrum.de
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
Eingehende E-Mails mit folgenden Anhangs-Endungen werden aus sicherheitsgründen automatisch abgewiesen:
PIF, SCR, BAT, URL, EXE, COM, DLL, HTA, VBS
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
Incoming E-Mails with the following attachement-extensions are automatically rejected for security reasons:
PIF, SCR, BAT, URL, EXE, COM, DLL, HTA, VBS
*******************************************
KRIWAN Testzentrum GmbH & Co. KG  -  AG Stuttgart: HRA 590480
Komplementär:
KRIWAN Verwaltungs-GmbH  -  AG Stuttgart: HRA 590645
Geschäftsführer: Dr. Ing. Elmar Zeitler, Dipl.-Ing. Jens-Peter Huischen

---
You are currently subscribed to vrf as: zhijin_guo@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

---
You are currently subscribed to vrf as: claudia.willging@kriwan-testzentrum.de
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

---
You are currently subscribed to vrf as: zhijin_guo@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

---
You are currently subscribed to vrf as: claudia.willging@kriwan-testzentrum.de
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

---
You are currently subscribed to vrf as: hua_jing@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".  

Outcomes