Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 16, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Custom format column in data grid
Alexander Pfingstl
Posts: 43
 
Custom format column in data gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 08 3:01 PM
Hi All,

I want to add a custom format column in a data grid to display only the time value of a datetime and add a string after it.
What I found out so far is, that I have to write a method to do this.
My question is, what parameters does the method need to have.
How do I call the method? Just type the method name in the text box?
And how do I access the column and write ata back? Just return the string value and create an instance of the entity object in my method?

Thanks for help!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Custom format column in data gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 08 3:08 PM
You can see an article I've written on using Custom Format Columns here: http://customerfx.com/pages/crmdeveloper/2008/09/11/Custom-Format-Columns-in-SalesLogix-Web-and-Linking-to-External-Sites-in-a-DataGrid.aspx

-Ryan
[Reply][Quote]
Alexander Pfingstl
Posts: 43
 
Re: Custom format column in data gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 08 3:23 PM
Hi,

Thanks for the link.
So if I hand over a DateTime value, lets say Starttime, do I have to do the following:
DateTime dat = new DateTime();
dat = Convert.ToDateTime(Starttime);
string result = dat.ToString("hh:mm") + " Uhr";
return result;

Thanks!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Custom format column in data gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Nov 08 3:33 PM
Yep, looks right to me. You'll be getting a object passed in and passing a string back out.
[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/16/2025 2:35:54 AM