Deletes a row from the DataGrid without deleting anything from the bound data source.
DataGridObject.DeleteRow(RowIndex)
Newlook Smartclient
Newlook Server
The DeleteRow method removes the row specified in the RowIndex argument, then decrements the RowCount property by 1. This method is similar to DeleteRecord except the data source remains unaltered. This method removes the specified row regardless of whether the data grid control is connected to a data source or not.
RowIndex - (Integer, Required)
The index of the row within the DataGrid that is to be deleted.
Returns a Boolean indicating the success or failure of the action.
The following example deletes the current row from the datagrid without altering its data source: JSCRIPT:function DeleteCurrentRow() {
}
VB SCRIPT:Sub DeleteCurrentRow
End Sub |
DeleteRecord Method | DeleteColumn Method | AddRecord Method | InsertRow Method | InsertColumnArray Method | InsertColumn Method | RowCount Property | RowIndex Property
© 2004-2021 looksoftware. All rights reserved.