NDataSource Class Methods
In This Topic
For a list of all members of this type, see NDataSource members.
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
Protected Methods
| Name | Description |
| OjQ | |
| OnDataChanged | Called when multiple rows have been inserted, removed or their values have changed. |
| OnDataTableChanged | Called when the DataTable property has changed. |
| OnFieldInserted | Called when a field has been inserted at the specified index. Raises the FieldInserted event |
| OnFieldRemoved | Called when a field has been removed at the specified index. Raises the FieldRemoved event |
| OnFieldRenamed | Called when a field has been renamed at the specified index. Raises the FieldRenamed event |
| OnNameChanged | Called when the name of the data source has changed. |
| OnRowInserted | Called when a row has been inserted at the specified index. Raises the RowInserted event |
| OnRowRemoved | Called when a row has been removed at the specified index. Raises the RowRemoved event |
| OnValueChanged | Called when the value at the specified row/field position has changed. Raises the ValueChanged event |
Top
See Also