main logo
Subject: Re: [dabo-users] dGrid with DateTextBox
Author: Paul McNett

Posted: 2008/01/31 12:10:00
 
View Entire Thread
New Search


johnf wrote:

> On Thursday 31 January 2008 07:35:59 am Gary Thompson wrote:
>> Hi All,
>> I hope this is an appropriate place to share this. I've been
>> wanting to have a DateTextBox as part of a grid column for a long time,
>> to simplify bulk data editing where dates are involved.
>>
>> I have managed to hack something together which does the job, I must
>> warn you that I do not have a lot of programming experience (thank you
>> to those out there whose code I poached in trying to put this
>> together). If there is another way which I missed when trying to
>> resolve this, I would be interested in knowing. Otherwise, here is some
>> code:
>>
> Running the code I noticed that typing in 01/32/2008 (Jan 32 2008) caused the
> date to become 01/31/2008 without warning the user. Shouldn't you warn the
> user?

IMO the behavior should be to revert back to the prior entry. IOW, if
6/17/2006 was displayed, and the user typed 01/32/2008, the entry would
revert back to 6/17/2006.

Paul

--
http://paulmcnett.com



 
©2008 Paul McNett
<-- Prior Message New Search Next Message -->