NDataSource Class Members
In This Topic
The following tables list the members exposed by NDataSource.
Public Constructors
Public Fields
Public Properties
| Name | Description |
| CanAddField | Determines whether the data source supports the AddField operation |
| CanAddRow | Determines whether the data source supports the AddRow operation |
| CanInsertField | Determines whether the data source supports the InsertField operation |
| CanInsertRow | Determines whether the data source supports the InsertRow operation |
| CanRemoveField | Determines whether the data source supports the RemoveField operation |
| CanRemoveRow | Determines whether the data source supports the RemoveRow operation |
| CanRenameField | Determines whether the data source supports the RenameField operation |
| DataTable | Gets the data provider associated with this data source. |
| FieldCount | Gets the count of fields in the data source |
| Item | Overloaded. Gets or sets the value for the specified row field. |
| Name | Gets or sets the data source name. The data source name is internally bound to the name of the underlying data provider. |
| RowCount | Gets the count of rows in the data source |
Top
Public Methods
| Name | Description |
| AddField | Adds a new field, if CanAddField is true |
| AddRow | Overloaded. Adds a row to the data table with default field values, if CanAddRow is true. |
| BeginDataChange | Begins a batch data change. During such a change the data table will not notify observers about changes. The call to the BeginDataChange() method, must always be paired with an EndDataChange() call. |
| CreateFormulaFieldName | Overloaded. Creates an formula field name, with which you can reference the field in formulas. |
| DropAllIndexes | Drops all indexes |
| DropIndex | Drops the specified field index |
| EndDataChange | Ends a batch data change, previously started by a call to BeginDataChange(). If any changes were made to the data table during the batch data change, the provider will notify the observers for a DataChange. The call to the EndDataChange() method, must always be paired with an BeginDataChange() call. |
| Filter | Overloaded. Runs the filter on the entire data source and returns the recordset with the matching records |
| GetFieldIndex | Gets the field index of the field with the specified name |
| GetFieldInfo | Overloaded. Gets information about the field at the specified index |
| GetIndex | Gets the index on the specified field. Returns null if an index was not created. |
| GetOrCreateIndex | Gets an existing index or creates such for the specified field index. |
| GetRow | Gets the row at the specified index. |
| GetValue | Overloaded. Gets the value for a given [row:field] |
| InsertField | Inserts a new field at the specified index, if CanInsertField is true |
| InsertRow | Overloaded. Inserts a new row with column default, at the specified index, if CanInsertRow is true |
| RemoveAllRows | Removes all rows from the data table. if CanRemoveRow is true. |
| RemoveField | Removes a field at the specified index, if CanRemoveField is true |
| RemoveRow | Removes a row at the specified index, if CanRemoveRow is true |
| RenameField | Sets a new name to the field at the specified index, if CanRenameField is true. |
| SetValue | Overloaded. Sets a value at the specified index |
| TryGetMax | Overloaded. Tries to get the maximum value for the specified field. Returns false if the data table has no records, or the field type is not comparable. |
| TryGetMin | Overloaded. Tries to get the minimum value for the specified field. Returns false if the data table has no records, or the field type is not comparable. |
Top
Public Events
| Name | Description |
| DataChanged | Occurs when multiple rows have been inserted or removed or when multiple cell values have changed. |
| FieldInserted | Occurs when a field has been inserted in the data source. |
| FieldRemoved | Occurs when a field has been removed from the data source. |
| FieldRenamed | Occurs when the name of a field in the data source has changed. |
| NameChanged | Occurs when the name of the data source has changed. |
| RowInserted | Occurs when a row has been inserted in the data source. |
| RowRemoved | Occurs when a row has been removed from the data source. |
| ValueChanged | Occurs when a [row;field] cell value has changed. |
Top
See Also