Entity Dates and UltraGrid from Infragistics

Posts   
 
    
csmith12
User
Posts: 33
Joined: 08-Dec-2003
# Posted on: 28-Feb-2005 15:45:54   

Experienced members,

I am having a small issue with the generated entity objects and Infragistics grid. Seems that infragistics is doing the right thing when I bind a collection class to a grid. My collection of entities have a date date property that allows null in the DB. When then entities are displayed in the grid, they show up as 01/01/0001. Is there any way around this?

Thanks

Chris

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 28-Feb-2005 16:02:24   

Create some custom code in the event handler for the grid which handles row formatting. I.o.w.: if the date == DateTime.MinValue, display something else, like ""

Frans Bouma | Lead developer LLBLGen Pro