Skip to content

DataRow

Represents a row in a DataTable.

Remarks

Column values are read and written as properties of the row, such as row.Name. Changes stay in memory until DataTable.Save is called.

Examples

Read and change column values

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
var customers = $Database.Get({
    TargetSchema : 'Sales',
    TargetTable : 'Customers',
    Where : {
        Criteria : [
            { Expression : 'Id', Value : $Xml.Evaluate('Customer/Id') }
        ]
    }
});

var customer = customers[0];

if (customer) {
    customer.Email = $Xml.Evaluate('Customer/Email');
    customers.Save();
}

Capabilities

Row State

Conversion