Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
add extra property to AppointmentDataBinding class
posted

i need some more properties in the DataBindingsForAppointments. how to add user defined properties to the AppointmentDataBinding class.

i have tried to inherit AppointmentDataBinding class, but i cant because that class doesnt have constructor. so i am getting error.

My Code is given below:

public class AppointmentsDataBinding_User : AppointmentsDataBinding

{

private string _userDefinedProperty = string.Empty;

//user defined properties

[DefaultValue("")][Editor("System.Windows.Forms.Design.DataMemberFieldEditor, System.Design", "System.Drawing.Design.UITypeEditor, System.Drawing")]public string UserDefinedProperty  { get { return this._userDefinedProperty ; } set { this._userDefinedProperty = value; } }

}

 

 

Parents
  • 2094
    Offline posted

    Create a serializable custom class which contains your custom properties and store this class object in each appointment.tag

    To store in the Database bind using the "AllProperties" Binding Member.

    Then to evaluate the properties simply cast the appointment.tag object into your custom class and evaluate the properties of your custom class.

     

    Regards
    Aaron

Reply Children