Login / Register  search  syndication  about

          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
   SalesLogix Cloud- Administration Options- Using Roles
In this webinar the user will learn to manage roles in the SalesLogix Web Client. These options are onl
Posted on Aug 20, 2010 by Dale Richter to Free SalesLogix Training
 
   SalesLogix 7.5.2 Speed Issues - How To Find the Slowdown
At times I have been asked how can I increase the performance of SalesLogix. For systems using SQL2005
Posted on Aug 13, 2010 by Mark Duthoy to SalesLogix Support
 
   SalesLogix Cloud- Administration Options- Creating a New Department
In this webinar we will look at the Administration Options in the SalesLogix Cloud. In this specific webi
Posted on Aug 13, 2010 by Dale Richter to Free SalesLogix Training
 
   SalesLogix Cloud- Administration Options- Creating a New Team
This Administrative webinar will show the user how to create a new Team for ownership of records. This is
Posted on Aug 13, 2010 by Dale Richter to Free SalesLogix Training
 
   Relating Assets to Tickets in SalesLogix Web and SalesLogix Cloud [Video]
In this SalesLogix Training webinar the user will learn how to relate an Asset to a Ticket in SalesLogix
Posted on Aug 12, 2010 by Dale Richter to Free SalesLogix Training
 
Comments

 

Matthew said:

Here is another useful link for text formatting:

blog.stevex.net/string-formatting-in-csharp

August 2, 2010 11:53 AM

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