Create EventHandler

  • Thread starter Thread starter Steve Lloyd
  • Start date Start date
S

Steve Lloyd

This is a really lame question but.... I have a datagrid and I want to
create the event and the signature for a ItemCommand, if i double click the
datagrid it creates the SelectedIndexChanged handler, but how can i create
the ItemCommand without manually adding the event handler and the routine?

Thanks
 
hi,
Single click the datagrid on the designer to select it, than press f4 for
display of the property window. On the upper side of the property window u
can see a yellow color lightning icon, click on it. Now instead of properties
in the property window, u can see all the events listed there. What ever
event you want to add the code for, just double click that event name and the
handler will be written automatically.

Hope that helps.

Abubakar.
http://joehacker.blogspot.com
 
In the properties window for your control, there's an events button which
lists all the available events for a given component. Double click in
there, and it's gets created in the code.
 
Hi Steve

Select the Datagrid
In the PropertyWindow Click on the flash-icon.
then either:
doubleclick on ItemCommand (EventHandler will be created with standard name)
or
next to ItemCommand type the desired methodName and press enter.
or
next to ItemCommand open the dropdown and select a name of an existing
applicable method.
 
Back
Top