I have created a custom PropertyGridItemElement for my RadPropertyGrid to hold a button. When the user clicks the button, the click handler performs some action, but the action is based on data that is known by the form that contains the propertygrid that contains the custom element. How do I arrange for that data to be available to the button's Click handler? The constructor of the custom element isn't even called explicitly -- it's implicit in
PropertyGrid.CreateItemElement += (sender, args) =>
{
if (args.Item.Name == nameof(LabelWrapper.Button))
{
args.ItemElementType = typeof(CustomPropertyGridItemElement);
}
};
Thanks in advance.