I have a datagridcombobox column, how do I raise an event for combobox item selection?
I searched and tried the follwing code:
// Program.cs
this.datagrdADDTEMP.SelectionChanged+=new System.EventHandler(datagrdADDTEMP_SelectionChanged);`
// Form.cs
void datagrdADDTEMP_SelectionChanged(object sender, SelectedGridItemChangedEventArgs e)
I got the following error:
no overloaded method for 'datagrdADDTEMP_SelectionChanged' matches delegate System.EventHandler'
please help me, I’m new to this concept of event bubbling
You can try with this signature
Link : http://msdn.microsoft.com/en-us/library/microsoft.clradmin.datagridcombobox_events%28v=vs.90%29