DataRelation Class
Namespace: Stimulsoft.System.Data
Constructors
| Constructor | Description |
|---|---|
| constructor(string relationName, DataColumn[] parentColumns, DataColumn[] childColumns) |
constructor(relationName: string, parentColumns: DataColumn[], childColumns: DataColumn[])
Parameters
- relationName (string)
- parentColumns (DataColumn[])
- childColumns (DataColumn[])
Properties
| Property | Type | Description |
|---|---|---|
| childColumns | any[] | |
| childTable | DataTable | |
| parentColumns | any[] | |
| parentTable | DataTable |
Methods
| Method | Returns | Description |
|---|---|---|
getChildRows static |
any[] | |
getParentRows static |
any[] | |
| setDataSet | void |
Method Details
getChildRows static
getChildRows(parentKey: DataKey, childKey: DataKey, parentRow: DataRow): any[]
Parameters
Returns any[]
getParentRows static
getParentRows(parentKey: DataKey, childKey: DataKey, childRow: DataRow): any[]
Parameters
Returns any[]
setDataSet
setDataSet(dataSet: DataSet): void
Parameters
- dataSet (DataSet)
Fields
| Field | Type | Description |
|---|---|---|
| childKey | DataKey | |
| dataSet | DataSet | |
| parentKey | DataKey | |
| relationName | string |