public override Widget GetEditWidget()
{
//get existing method names
ICollection IColl = evtBind.GetCompatibleMethods (evtBind.GetEvent (parentRow.PropertyDescriptor)) ;
string[] methods = new string [IColl.Count + 1];
IColl.CopyTo (methods, 1);
//add a suggestion
methods [0] = evtBind.CreateUniqueMethodName ((IComponent) parentRow.ParentGrid.CurrentObject, evtBind.GetEvent (parentRow.PropertyDescriptor));
ComboBoxEntry combo = new ComboBoxEntry (methods);
if (parentRow.PropertyValue != null)
combo.Entry.Text = (string) parentRow.PropertyValue;
combo.WidthRequest = 30; //Don't artificially inflate the width. It expands anyway.
//TODO: do we want events created even if not activated?
combo.Entry.Destroyed += new EventHandler (entry_Changed);
combo.Entry.Activated += new EventHandler (entry_Activated);
combo.Changed += new EventHandler (combo_Activated);
return combo;
}