Community
Showing results for 
Search instead for 
Do you mean 
Reply

DateTimePicker databinding

New Member
Posts: 21
Country: USA

DateTimePicker databinding

Does anyone have an example of binding a DateTimePicker to a custom field?

 

My field is defined as:

 

field =

new FieldDescriptor("Ticket Opened", "TICKET_OPENED_DATE", descriptor, FieldDataType.Date);

 

I've tried:

this

and

.DateOpened.DataBindings.Add("Value", this.bindingSource, "TICKET_OPENED_DATE");

this

but nothing is saved. Using "Value" throws an error.

Thanks,

.DateOpened.DataBindings.Add("Text", this.bindingSource, "TICKET_OPENED_DATE");

Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: DateTimePicker databinding

Hiya,
Just a quick check...you are doing a actFwk.Fields.Save(field);
after instantiating?
Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
New Member
Posts: 21
Country: USA

Re: DateTimePicker databinding

Sorry for the blank post (Don't use IE9)

 

Yes, I am saving the field properly and the customSubentity works fine, other than the date fields.

 

Without databinding, how are dates stored in ACT from .NET? Maybe once I understand that, I can get databinding to work.

 

Thanks!