DataTable Class

Namespace: Stimulsoft.System.Data

Constructors

Constructor Description
constructor(any tableName)  

constructor(tableName: any)

Parameters

  • tableName (any)

Properties

Property Type Description
childRelations DataRelationCollection  
index any[] Cache for DataKey.GetRows method
parentRelations DataRelationCollection  

Methods

Method Returns Description
addNewRow DataRow  
addRow number  
clone DataTable  
copy DataTable  
loadDataRow DataRow Finds and updates a specific row. If no matching row is found, a new row is created using the given values.
newRow DataRow  
removeRow void  
setDataSet void  
toList DataColumn[]  

Method Details

addNewRow

addNewRow(): DataRow

Returns DataRow


addRow

addRow(row: DataRow): number

Parameters

Returns number


clone

clone(): DataTable

Returns DataTable


copy

copy(): DataTable

Returns DataTable


loadDataRow

loadDataRow(values: any[], acceptChanges: any): DataRow

Finds and updates a specific row. If no matching row is found, a new row is created using the given values.

Parameters

  • values (any[]) — An array of values used to create the new row.
  • acceptChanges (any)

Returns DataRow — The new DataRow.


newRow

newRow(): DataRow

Returns DataRow


removeRow

removeRow(row: DataRow): void

Parameters


setDataSet

setDataSet(dataSet: DataSet): void

Parameters


toList

toList(): DataColumn[]

Returns DataColumn[]

Fields

Field Type Description
columns DataColumnCollection  
dataSet DataSet  
defaultView DataView  
extendedProperties any  
rows DataRowCollection  
tableName any