Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / January 2007

Tip: Looking for answers? Try searching our database.

Typical datetimepicker problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rock3 - 22 Jan 2007 03:46 GMT
Trying to bind datetimepicker to bindingsource I face 2 problems:
1) The typical problem - I can't bind to nulls. Summing up, what is the
easiest way to allow datetimepicker to be bound to null?
2) This thing is about date formats in which datetimepicker stores dates. In
sql server from where I take date data, format is the following: dd/mm/yyyy
(i.e. german). Datetimepicker stores date in this format: mm/dd/yyyy. Of
course I can change output format using customformat but this is only
presentation. When I set new date in databound datetimepicker, it changes the
places of day and month. For example if I specify 10.01.2007 in DTP,
databinding binds to dataset 01.10.2007. If day value is more than 12 - I
can't commit dataset to real database.
I tried to change cultureinfo settings but that didn't helped. Please let me
know what to do?
Eric Moreau - 22 Jan 2007 11:03 GMT
See
http://www.emoreau.com/Entries/Articles/2005/01/The-DateTimePicker-control.aspx

Signature

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
S2i web inc. (www.s2i.com)
http://www.emoreau.com/

> Trying to bind datetimepicker to bindingsource I face 2 problems:
> 1) The typical problem - I can't bind to nulls. Summing up, what is the
[quoted text clipped - 13 lines]
> me
> know what to do?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.