Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> TypedList custom column
 

Pages: 1
LLBLGen Pro Runtime Framework
TypedList custom column
Page:1/1 

  Print all messages in this thread  
Poster Message
tprohas
User



Location:
Tucson, AZ
Joined on:
23-Mar-2004 00:00:43
Posted:
257 posts
# Posted on: 30-May-2008 23:56:28.  
LLBLGen 2.5
Runtime: v2.0.50727
ASP.NET 2.0

I'm trying to add a custom column to a typed list which I think needs to use an Expression. I want to concatenate and format a number of fields and I can't figure out how to do it.

This is what the custom property looks like on an entity.

Code:

public string EventNameAndTime
{
    get
    {
        string timeSpan = this.StartTime.ToString("MM/dd/yyyy") + " " + this.StartTime.ToString("hh:mm tt") + " - " + this.EndTime.ToString("hh:mm tt");
        return this.EventName + " " + timeSpan;
    }
}


Now how would I do this in a typed list?
Aaron Prohaska
http://www.verdesoft.com/
 
Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8065 posts
# Posted on: 31-May-2008 04:40:33.  
These threads could help you:
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=8110
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=4295


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.