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.
Unfortunately, activation email could not send to your email. Please try again.

How to clear display text in datetimepickerAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

39474 Jan 9,2006 04:07 PM Jan 10,2006 04:37 AM Windows Forms 1
loading
Tags: Tools
Thomas
Asked On January 9, 2006 04:07 PM

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 04:37 AM

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.

CONFIRMATION

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.

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.

;