Click the button with the predefined keyword command to generate two events: first is a general itemcommand event, followed by CommandName as a Command event for a predefined keyword command, (such as SelectedIndexchange, CancelCommand, DelecteCommand, EditCommand, UpdateCommand. Where: EditCommand event is triggered, it will automatically transfer to edit mode, and edit mode means using the EditItem template. OnselectedIndexchanged method: When the selected index change changes, click a selection button to automatically deselect the current item and select a new item. This method must be called in selecting mode.
Note: Several events are for the ButtonColumn column. -------------------------------------------------- -------------------------------------------------- -------------------- The two below is Grid Common Method: Itemcreated: When you create an item in the DataGrid control (whether it is tied in the round trip or When it is set to the control, it will trigger an itemcreated event. ItemDatabase: When the item is bound by the data to the DataGrid control, ItemDatabase will be triggered. This event provides you with the last chance to access the data item before the client displays data items. When this event is triggered, the data item will be set to empty and will not be available.