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!
|
|
Datagrid textalign syntax
Posted: 07 Sep 10 8:52 AM
|
Syntax needed to align a text of a field in "center" in datagrid at runtime
for example
Set colHits = grd.Columns.Add(0) '0 - Standard colHits.FieldName = "A2_Hits" colHits.Caption = "Hits" colHits.Width="30" colHits.TextAlign = "Center" ???? |
|
|
| |
|
Re: Datagrid textalign syntax
Posted: 07 Sep 10 9:38 AM
|
Even after I set TextAlign to an integer value, I get an error message as
"Object doesn't support this property or method: 'colHits.TextAlign' "
I am using version 7.5.2
|
|
|
|
Re: Datagrid textalign syntax
Posted: 07 Sep 10 9:49 AM
|
Sorry, didn't notice that you had the wrong property name:
Property Alignment As TxAlignment Member of SLXControls.DataGridColumn
The property name is called "Alignment" |
|
|
|
Re: Datagrid textalign syntax
Posted: 07 Sep 10 9:50 AM
|
Sorry, didn't notice that you had the wrong property name:
Property Alignment As TxAlignment Member of SLXControls.DataGridColumn
The property name is called "Alignment" and you could also set the "HeaderAlignment".
Property HeaderAlignment As TxAlignment Member of SLXControls.DataGridColumn |
|
|
| |
|