Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 2025 
 
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 - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Datagrid - Make Horizontal Alignment Centered - SLX LAN v7.2.1
SLX_Novice
Posts: 246
 
Datagrid - Make Horizontal Alignment Centered - SLX LAN v7.2.1Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 09 10:51 AM
Hi all.

I'm dynamically creating a datagrid and I'm stuck on 2 points:

1. How to center the column header
2. How to center the data in the column

Below is the formatting I've done for the column so far, but I need the horizontal alignment.

col.FieldName = "myField"
col.Caption = "Name"
col.Readonly = True
col.Width = 100

Thank you in advance!
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Datagrid - Make Horizontal Alignment Centered - SLX LAN v7.2.1Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 09 11:08 AM
If you examine the DataGridColumn object you will find the following properties:

Alignment (Values: 0 Left, 1 Right, 2 Center)
HeaderAlignment (Values: 0 Left, 1 Right, 2 Center)
VertAlignment (Values: 0 Top, 1 Center, 2 Bottom)

[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Datagrid - Make Horizontal Alignment Centered - SLX LAN v7.2.1Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 09 11:19 AM
Thanks Raul, that was it!
[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 © 2025 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): 8/29/2025 10:16:09 AM