skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DataColumnCollection

Represents a collection of DataColumn objects.

Inheritance
System.Object
System.Collections.ObjectModel.Collection<DataColumn>
DataColumnCollection
Inherited Members
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Add(Telerik.Reporting.DataColumn)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Clear()
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.CopyTo(Telerik.Reporting.DataColumn[], System.Int32)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Contains(Telerik.Reporting.DataColumn)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.GetEnumerator()
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.IndexOf(Telerik.Reporting.DataColumn)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Insert(System.Int32, Telerik.Reporting.DataColumn)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Remove(Telerik.Reporting.DataColumn)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.SetItem(System.Int32, Telerik.Reporting.DataColumn)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Count
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Items
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.Item[System.Int32]
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.Generic.ICollection<Telerik.Reporting.DataColumn>.IsReadOnly
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.Item[System.Int32]
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.System.Collections.IList.IsFixedSize
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.ClearItems()

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
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.InsertItem(System.Int32, Telerik.Reporting.DataColumn)

RemoveItem(Int32)

Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32 index

Overrides
System.Collections.ObjectModel.Collection<Telerik.Reporting.DataColumn>.RemoveItem(System.Int32)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.