c# - UITypeEditor in PropertyGrid with multiselection -


i have custom object can edited propertygrid (devexpress) via custom typeeditor (talking .net, c# , winforms).

the "entry point" in custom uitypeeditor method

public override object editvalue(itypedescriptorcontext context,                                  iserviceprovider provider,                                  object value) 

that called when tries edit value propertygrid.

everything works fine, how can handle multiselection? when selects 2 objects in property grid, value param null, there way list values? or way handle type of behaviour?

thanks,

in case, context.instance contains array of objects selected values:

public override object editvalue(itypedescriptorcontext context, iserviceprovider provider, object value) {     object[] selectedvalues = (object[])context.instance; } 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -