In This Topic
The following tables list the members exposed by NDataTable.
Public Properties
| Name | Description |
| CanAddField | Determines whether the data table supports the AddField operation |
| CanAddRow | Determines whether the data table supports the AddRow operation |
| CanInsertField | Determines whether the data table supports the InsertField operation |
| CanInsertRow | Determines whether the data table supports the InsertRow operation |
| CanRemoveField | Determines whether the data table supports the RemoveField operation |
| CanRemoveRow | Determines whether the data table supports the RemoveRow operation |
| CanRenameField | Determines whether the data table supports the RenameField operation |
| FieldCount | Gets the count of fields in the data table |
| Item | Overloaded. Gets or sets the value for the specified row field. |
| Name | Gets/Sets the name of the data table. |
| RowCount | Gets the count of rows in the data table |
Top
Public Methods
| Name | Description |
| AddField | Adds the specified field, if CanAddField is true. |
| AddObserver | Adds data table to this inner data table |
| AddRow | Overloaded. Adds a row |
| BeginDataChange | Begins a batch data change. During such a change the data provider will not notify observers about changes. The call to the BeginDataChange() method, must always be paired with an EndDataChange() call. |
| DeepClone | Returns this instance (e.g. a shallow copy). |
| 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 table and returns the recordset with the matching records |
| FromObject | Creates a data table from the specified object. |
| 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. |
| GetObservers | Gets the observers associated with this data provider. |
| 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 the specified 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 |
| RemoveField | Removes the field at the specified index, if CanRemoveField is true |
| RemoveObserver | Removes a data table from this inner data table |
| 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. If the specified field is readonly, throws an exception. |
| TryGetMax | Overloaded. Tries to get the maximum value for the specified field. Returns false if the data provider 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 provider has no records, or the field type is not comparable. |
Top
See Also