Repeater control, properties of the DataList control: OnItemCommand When a button or LinkButton control that is declared in ItemTemplate triggers an event, if the control CommandName property content is not an edit, This event is triggered when Cancel, Delete, or update occurs.
When we set the DataSource property of the DataGrid, we call the DataGrid's DataBind () method and bind the data source to the DataGrid, triggering the DataBinding event
When data binding is complete, the ItemDataBound event is triggered, and in the ItemDataBound event, we have the last chance to access the DataGrid's data source, and in the itemcreated and ItemDataBound events we can (DataRowView) (E.item. DataItem), put E. Item: DataItem is cast to the DataRowView object, and then we can access the data source.
The role of OnItemCommand and the specific role of Onitemdatabound