Hi i have tried to use your calendarinfo and ultratimelineview and when i use the designer ... he always throw me this exception "In current data source there is no column named: Id"
I have a Id in my databinding class
public class Person { public string Name { get; set; } public int Id { get; set; } }
this.ultraCalendarInfo1.DataBindingsForAppointments.BindingContextControl = this; this.ultraCalendarInfo1.DataBindingsForOwners.BindingContextControl = this; this.ultraCalendarInfo1.DataBindingsForOwners.DataSource = this.personBindingSource; this.ultraCalendarInfo1.DataBindingsForOwners.KeyMember = "Id"; this.ultraCalendarInfo1.DataBindingsForOwners.NameMember = "Name";
Hello pmorin,
I am not able to understand what is happening exactly from this piece of code. Where is this code? Are you sure that you have this 'DataSource' initialized at the moment of binding?
Could you please try to attach, if possible, a small sample project, reproducing the above mentioned issue, I will be happy to take a look at it?
this piece of code is in the initializeComponent
// // ultraCalendarInfo1 // this.ultraCalendarInfo1.DataBindingsForAppointments.BindingContextControl = this; this.ultraCalendarInfo1.DataBindingsForOwners.BindingContextControl = this; this.ultraCalendarInfo1.DataBindingsForOwners.DataSource = this.personBindingSource; this.ultraCalendarInfo1.DataBindingsForOwners.KeyMember = "Id"; this.ultraCalendarInfo1.DataBindingsForOwners.NameMember = "Name"; // // personBindingSource // this.personBindingSource.DataSource = typeof(WindowsFormsApplication1.MyFuckingTimeLineView.Person);
Then, i don't have the change to set my personbindingSource to any collection because the initializeComponent throw me the exception.
You can check my attached file.
By the way, i am using infragistics 9.2 with patch 2119
Another bug onto the calendarinfo, if you set the NameMember and KeyMember to the same properties for DatabindingForOwners, a exception is throw at the runtime.