Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > PropertyGrid > PropertyChange Event

Not answered PropertyChange Event

Feed from this thread
  • Ji -Won avatar

    Posted on Feb 13, 2012 (permalink)

    Hello.

    My Some own class have EnumValue Property.

    that is showing like a combobox.

    but that combobox doesn work before press enter key.

    My boss want see preview about change value(that value make some design to another control)
    when change combobox value..

    please tell me how i can use change value without enter key at enumValue.

    Thank you...

    Reply

  • Ivan Petrov Ivan Petrov admin's avatar

    Posted on Feb 15, 2012 (permalink)

    Hello Ji-Won,

    Thank you for writing.

    To achieve this, you can use the EditorInitialized event and there subscribe to the editors SelectedIndexChanged event and change the property when you change the selection in the editor. I have attached a sample project where I have created a custom enum with color names and a proxy class which uses this enum to change the fore color of a label. The is needed strictly for the demonstration. In your real app you just need to subscribe and unsubscribe to the editor events. 

    I hope you will find this useful. Should you need further help, I would be glad to assist.

    Regards,
    Ivan Petrov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > PropertyGrid > PropertyChange Event