Using the DataRow Property to Access the Current Row
mmBusinessObject has a DataRow property that contains a reference to the "current" DataRow. Depending on the custom code you have created in your business object, you need to check your assumptions to make sure this property truly contains the DataRow you are interested in.
The following mmBusinessObject methods affect the DataRow property:
| Method | Effect on DataRow |
|---|---|
| Cancel(DataSet ds, string tableName) | Sets to null if DataRow.RowState == DataRowState.Detached |
| Delete(DataRow dr) | Sets to first DataRow in the DataTable |
| FillDataSet(DataSet ds, string command, string tableName, string databaseKey, CommandType cmdType, params IDbDataParameter[] dataParams | Sets to the first DataRow only when retrieving data into the business object's default DataTable |
| GetEmptyDataSet(DataSet ds, string tableName, string databaseKey) | Sets to null |
| LoadRow(object pk) | Sets to the newly loaded DataRow |
| NavigatedData(DataRowView drView) | Sets to the DataRow just navigated to |
| NewRow(DataSet ds, string tableName, object defaultValues) | Sets to the new DataRow |
| ReadXMLFileToDataSet(string xmlFile, DataSet ds | Sets to the first DataRow only when retrieving data into the business object's default DataTable |
| SaveDataSet(string tableName, int currentRow) | Sets to the DataRow specified in the currentRow parameter |
| SaveDataView(DataView dv, int currentRow) | Sets to the DataRow specified in the currentRow parameter |
| SetCurrentDataSet() | Sets to the first DataRow for the default DataTable |
| StoreDataRow(DataSet ds) | Sets to the first DataRow in the default DataTable |
| StoreDataRow(DataView dv) | Sets to the first DataRow in the specified DataView |
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 07/28/18
Comment or report problem with topic
