private DataTable myTable;
private void AddHandler ( ) {
myTable = new DataTable ( "myTable" );
myTable.RowChanged + =
new DataRowChangeEventHandler ( myTable_Changed );
}
protected void myTable_Changed ( object sender,
System.Data.DataRowChangeEventArgs e ) {
Response.Write ( "Row Changed", e.Action,
e.Row [ myDataGrid.CurrentCell.ColumnNumber ] );
}
Private myTable As DataTable
Private Sub [ AddHandler ] ( )
myTable = New DataTable ( "myTable" )
AddHandler myTable.RowChanged, AddressOf myTable_Changed
End Sub
Protected Sub myTable_Changed ( sender As Object, _
e As System.Data.DataRowChangeEventArgs )
Response.Write ( "Row Changed", e.Action, _
e.Row ( myDataGrid.CurrentCell.ColumnNumber ) )
End Sub |