ChristianWhite
Programmer
First time programming a full three-tier application, and I've been handed a biggie (as projects go in my group).
When I retrieve a datetime into a c# middle-tier object datetime property from the data tier, the datetime has to have a value. Not always having a valid date, I initialize it to Datetime.MinValue.
As we just went through a week of training for c# beginners ending with a demo of how the UI can manipulate objects to create gridviews via the object data source, I thought I'd put the practice to use.
Problem is, my gridview is reading from the object's datetime property that has to have a value even if the value isn't valid for business purposes.
Can I blank out cells in a gridview that have a specified value, such as DateTime.Minvalue? No fair falling back on SQL--this has to happen in the UI or POSSIBLY an object property. But to make the property a different type, I'd have to see an advantage. I'd rather filter via GridView and other UI objects.
When I retrieve a datetime into a c# middle-tier object datetime property from the data tier, the datetime has to have a value. Not always having a valid date, I initialize it to Datetime.MinValue.
As we just went through a week of training for c# beginners ending with a demo of how the UI can manipulate objects to create gridviews via the object data source, I thought I'd put the practice to use.
Problem is, my gridview is reading from the object's datetime property that has to have a value even if the value isn't valid for business purposes.
Can I blank out cells in a gridview that have a specified value, such as DateTime.Minvalue? No fair falling back on SQL--this has to happen in the UI or POSSIBLY an object property. But to make the property a different type, I'd have to see an advantage. I'd rather filter via GridView and other UI objects.