asp.net.ph

DataRowView.Delete Method

System.Data Namespace   DataRowView Class


Deletes a row.

[ VB ]
Public Sub Delete ( )

[ C# ]
public void Delete ( );

[ C++ ]
public: void Delete ( );

[ JScript ]
public function Delete ( );

Remarks

The row is not permanently deleted until AcceptChanges is invoked on the DataTable that row belongs to.

Example

The following example uses the Delete method on a row.

private void DeleteRow ( ) {
   DataRowView myRow;
   DataView myDataView = ( DataView ) myGrid.DataSource;
   myRow = myDataView [ myGrid.CurrentCell.RowNumber ];
   myRow.Delete ( );
}
  C# VB
See Also

DataRowView Members   BeginEdit 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