The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
| |
|
Re: Set "Cannot Type Text" on combobox on datagrid dynamically
Posted: 06 May 10 6:07 PM
|
Hi, I'm still stuck on this unfortunately and wondering if anyone could point me in the right direction. I've looked at the SLX controls in Visual studio object browser and can't seem to find a corresponding property to set.
Thanks Leon
Edit: I've found the property in Visual Studio called DataGridColumnPick.CannotTypeText() but how do I set this on a column? |
|
|
|
Re: Set "Cannot Type Text" on combobox on datagrid dynamically
Posted: 08 May 10 8:21 PM
|
First of all, DataGridColumnPick is not a Combo box, it is a Picklist. If you set your Column Type to Picklist and then edit its properties, you will see a Checkbox with matching caption: "Cannot type text".
The Combo box is represented by the DataGridColumnCombo, and if you don't want the user to type text you need to set the DropDownListStyle property to true. I would suspect that this is the property that you are looking for. |
|
|
|
Re: Set "Cannot Type Text" on combobox on datagrid dynamically
Posted: 09 May 10 6:15 PM
|
Thanks Raul - DropDownListStyle worked as you said. I was about to try use a picklist instead but would prefer the combo box so much appreciated.
For future reference - what is the numeric value to create a picklist? (TxDataGridColumnType)
Cheers and thx again Leon |
|
|
|
Re: Set "Cannot Type Text" on combobox on datagrid dynamically
Posted: 09 May 10 9:58 PM
|
For your reference, here are the values associated to the different Columns (on the TXDataGridColumnType enumeration):
Button - 2 Calculator - 9 Check - 4 Combo - 8 Currency - 13 Date - 3 Hyperlink - 11 Image - 5 Mask - 1 Memo - 14 Picklist - 15 Picture Blob - 10 Spin - 6 Standard - 0 Time - 12 |
|
|
| |
|