Login / Register  search  syndication

          Kris Halsrud's Blog

Kris Halsrud on development and Integration with CRM and Development

Column formatting in the SalesLogix web grid control

In the SalesLogix web grid control there is a TextFormatString property to grid columns.  Unfortunately there is no documentation currently on how to use this property.  Hopefully this article will help with that.

 

In the SalesLogix Application Architect, if you open a QuickForm that has a grid, you can click on the Grid to see its properties.  one of these properties is the Columns collection.

image

Clicking on the Collection will open the grid column collection dialog.

image

In the dialog you can see the columns in the grid and as you click each column on the left you can see the column's corresponding properties on the right.  This is where the TextFormatString property is located.  In the screen above I have selected the CreateDate property as my bound entity property (DataField).  let's say I wanted to format that so that it only displays the date and not the time.  To do that I can simply add the format string for short date, which is {0:d}.

image

That is all there is to it.  Now when the form is rendered the date will display as just the short date (i.e. 12/25/2006).

Check out this MSDN article for various format strings.

What's This?
Bookmark and Share

About Kris Halsrud

   Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.


Related Content
   Creating Pretty Prefixes and Suffixes in the SalesLogix web client
In the SalesLogix web client you may run across a reason you need to generate a “Pretty Key”. This is wh
Posted on Mar 17, 2010 by Kris Halsrud to Kris Halsrud's Blog
 
   SalesLogix Web Client- Working with Activities
In this webinar the user will learn to work with Activities from the Activities entity. This feature all
Posted on Mar 16, 2010 by Dale Richter to SalesLogix Training
 
   Adding an assembly reference to code files in the SalesLogix Application Architect
Often when adding custom code to SalesLogix you need to reference Assemblies that are not included by def
Posted on Mar 15, 2010 by Kris Halsrud to Kris Halsrud's Blog
 
   SalesLogix Web Client- Marketing Campaigns Part I [Video]
In this video webinar the Marketing Professional will learn how to create a New Marketing Campaign in Sal
Posted on Mar 15, 2010 by Dale Richter to SalesLogix Training
 
   Launching a report from a button in the SalesLogix web client
Starting in SalesLogix 7.5.1, Sage released an undocumented Reporting enhancement that allowed for intera
Posted on Mar 12, 2010 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2010 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register