Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Datagrid textalign syntax
Niku
Posts: 29
 
Datagrid textalign syntaxYour last visit to this thread was on 1/1/1970 12:00:00 AM
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" ????
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Datagrid textalign syntaxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Sep 10 9:27 AM
TextAlign takes an Integer, see table below:

Left Justify = 0
Right Justify = 1
Center = 2
[Reply][Quote]
Niku
Posts: 29
 
Re: Datagrid textalign syntaxYour last visit to this thread was on 1/1/1970 12:00:00 AM
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

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Datagrid textalign syntaxYour last visit to this thread was on 1/1/1970 12:00:00 AM
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"
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Datagrid textalign syntaxYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Niku
Posts: 29
 
Re: Datagrid textalign syntaxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Sep 10 10:00 AM
Thanks Raul. It worked.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 8:13:05 PM