ComponentOne DataObjects for .NET
Programmatic Access to Data
DataObjects for .NET Express Edition > C1ExpressTable: Working with Simple and Composite Tables > Programmatic Access to Data

To access data in code, use properties and methods of the C1.Data.C1DataTable object returned by the DataTable property. As with all programmatic classes in DataObjects for .NET Express, C1DataTable object model is based on the ADO.NET DataTable object model, so you will find its methods and properties familiar if you already know ADO.NET.

Here is a brief syntax description for most common programmatic tasks in accessing data in code (in Visual Basic, replace indexing brackets "[index]" with parentheses "(index)"):

To get/set field value in a row, (C1DataRow object), use row[field_name] or row[field_index], or, with full access path, C1ExpressTable.DataTable.Rows[row_index] [field_index].