Class DataColumnCollection
Represents a collection of DataColumn objects.
Inheritance
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class DataColumnCollection : Collection<DataColumn>, IList<DataColumn>, ICollection<DataColumn>, IList, ICollection, IReadOnlyList<DataColumn>, IReadOnlyCollection<DataColumn>, IEnumerable<DataColumn>, IEnumerable
Constructors
DataColumnCollection()
Declaration
public DataColumnCollection()
Properties
Item[String]
Gets a column by name.
Declaration
public DataColumn this[string name] { get; }
Parameters
System.String
name
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
public DataColumn Add(string name, SimpleType columnType)
Parameters
System.String
name
A System.String value that will be used as Name for the newly created DataColumn. |
SimpleType
columnType
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
public void AddRange(IEnumerable<DataColumn> enumerable)
Parameters
System.Collections.Generic.IEnumerable<DataColumn>
enumerable
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
protected override void ClearItems()
Overrides
Contains(String)
Determines whether the DataColumnCollection contains a column with a specific name.
Declaration
public bool Contains(string name)
Parameters
System.String
name
A System.String that specifies the parameter name for which to search the elements of the DataColumnCollection. |
Returns
System.Boolean
Returns a System.Boolean 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
public int IndexOf(string name)
Parameters
System.String
name
The parameter name used to locate the report parameter in the DataColumnCollection. |
Returns
System.Int32
The index of column if found in the DataColumnCollection; otherwise, -1. |
InsertItem(Int32, DataColumn)
Inserts an item to the DataColumnCollection at the specified index.
Declaration
protected override void InsertItem(int index, DataColumn item)
Parameters
System.Int32
index
The zero-based index at which item should be inserted. |
DataColumn
item
The DataColumn to insert into the DataColumnCollection. |
Overrides
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32
index
|