DataColumnCollection
Represents a collection of DataColumn objects.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter("Telerik.Reporting.Design.DataColumnCollectionConverter, Telerik.Reporting.Design, Version=20.1.26.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public class DataColumnCollection : Collection<DataColumn>
Inheritance: objectCollection<DataColumn>DataColumnCollection
Constructors
public DataColumnCollection()
Properties
Gets a column by name.
public DataColumn this[string name] { get; }
The name of the column.
Property Value:A column if found; otherwise null (Nothing)
Methods
Creates a DataColumn with specific settings and adds it to the DataColumnCollection.
public DataColumn Add(string name, SimpleType columnType)
A string value that will be used as Name for the newly created DataColumn.
columnTypeSimpleTypeA SimpleType constant will be used for the newly created DataColumn.
Returns:The newly created and added DataColumn
Adds an enumerable of DataColumn objects to the DataColumnCollection.
public void AddRange(IEnumerable<DataColumn> enumerable)
An enumerable of DataColumn objects to add to the DataColumnCollection.
The DataColumn objects returned from the enumerable are appended to the end of the DataColumnCollection.
protected override void ClearItems()
Overrides:
Contains(string)
bool
Determines whether the DataColumnCollection contains a column with a specific name.
public bool Contains(string name)
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.
Determines the index of a specific column in the DataColumnCollection.
public int IndexOf(string name)
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.
Inserts an item to the DataColumnCollection at the specified index.
protected override void InsertItem(int index, DataColumn item)
The zero-based index at which item should be inserted.
itemDataColumnThe DataColumn to insert into the DataColumnCollection.
Overrides:
protected override void RemoveItem(int index)
Overrides: