asp.net.ph

DataRowChangeEventArgs Class

System.Data Namespace


Provides data for the RowChanged, RowChanging, OnRowDeleting, and OnRowDeleted events.

DataRowChangeEventArgs Class Members

Collapse   Constructors

Visibility Constructor Parameters
public DataRowChangeEventArgs ( DataRow row , DataRowAction action )

Collapse   Properties

Visibility Name Value Type Accessibility
public Action DataRowAction [ Get ]
public Row DataRow [ Get ]

Remarks

The RowChanged, RowChanged, RowChanged, and RowChanged events occur when an action is performed on a DataRow.

Example

The following example adds a DataRowChangeEventHandler and the procedure to handle the event when a row is changed. The procedure prints the action and value of the changed row.

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 ] );
}
  C# VB

See Also

OnRowChanged   OnRowChanging   OnRowDeleting   DataRow   DataRowAction   DataRowChangeEventHandler   OnRowDeleted   DataTable Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph