Class
DataColumnCollection

Represents a collection of DataColumn objects.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter("Telerik.Reporting.Design.DataColumnCollectionConverter, Telerik.Reporting.Design, Version=20.0.26.211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public class DataColumnCollection : Collection<DataColumn>

Inheritance: objectCollection<DataColumn>DataColumnCollection

Constructors

DataColumnCollection()

Declaration

cs-api-definition
public DataColumnCollection()

Properties

this[string]

Gets a column by name.

Declaration

cs-api-definition
public DataColumn this[string name] { get; }

Parameters

name

string

The name of the column.

Property Value

DataColumn

A column if found; otherwise null (Nothing)

Methods

Add(string, SimpleType)

Creates a DataColumn with specific settings and adds it to the DataColumnCollection.

Declaration

cs-api-definition
public DataColumn Add(string name, SimpleType columnType)

Parameters

name

string

A string value that will be used as Name for the newly created DataColumn.

columnType

SimpleType

A SimpleType constant will be used for the newly created DataColumn.

Returns

DataColumn

The newly created and added DataColumn

AddRange(IEnumerable<DataColumn>)

Adds an enumerable of DataColumn objects to the DataColumnCollection.

Declaration

cs-api-definition
public void AddRange(IEnumerable<DataColumn> enumerable)

Parameters

enumerable

IEnumerable<DataColumn>

An enumerable of DataColumn objects to add to the DataColumnCollection.

Remarks

The DataColumn objects returned from the enumerable are appended to the end of the DataColumnCollection.

ClearItems()

Declaration

cs-api-definition
protected override void ClearItems()

Overrides Collection<DataColumn>.ClearItems()

Contains(string)

Determines whether the DataColumnCollection contains a column with a specific name.

Declaration

cs-api-definition
public bool Contains(string name)

Parameters

name

string

A string that specifies the parameter name for which to search the elements of the DataColumnCollection.

Returns

bool

Returns a bool value indicating whether the DataColumnCollection object contains a report parameter with the specified name.

IndexOf(string)

Determines the index of a specific column in the DataColumnCollection.

Declaration

cs-api-definition
public int IndexOf(string name)

Parameters

name

string

The parameter name used to locate the report parameter in the DataColumnCollection.

Returns

int

The index of column if found in the DataColumnCollection; otherwise, -1.

InsertItem(int, DataColumn)

Inserts an item to the DataColumnCollection at the specified index.

Declaration

cs-api-definition
protected override void InsertItem(int index, DataColumn item)

Parameters

index

int

The zero-based index at which item should be inserted.

item

DataColumn

The DataColumn to insert into the DataColumnCollection.

Overrides Collection<DataColumn>.InsertItem(int, DataColumn)

RemoveItem(int)

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

Overrides Collection<DataColumn>.RemoveItem(int)