We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to clear display text in datetimepickerAdv

Thread ID:





39474 Jan 9,2006 09:07 PM UTC Jan 10,2006 09:37 AM UTC WinForms 1
Tags: Tools
Asked On January 9, 2006 09:07 PM UTC

i have a DateTimePickerAdv control on my form, when navigating through each record of my dataset, i assign a date value to the DateTimePickerAdv control. There''s a case that I don''t always have the date value (no date ) and my DateTimePickerAdv is supposed to have no date to display, my DateTimePickerAdv control always keeps the date of previous record, how can i clear the value, Please help. thanks

Anupama Roy [Syncfusion]
Replied On January 10, 2006 09:37 AM UTC

Hi Thomas, If the DateTimePickerAdv is bound to a DataSource that may contain null values in the date field, when you add the binding you bind to "BindableValue" and not "Value" as shown below. this.dateTimePickerAdv1.DataBindings.Add(new System.Windows.Forms.Binding("BindableValue", this.dataSet11, "Table1.Date")); Please take a look at the sample in the following KB Article. How can you setup databinding to your DateTimePickerAdv ? Thanks for choosing Syncfusion products. Regards, Anu.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon