A collection of GridViewColumn objects
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewColumnCollection : ObservableCollection<GridViewDataColumn>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, INotifyPropertyChangingEx
Inheritance: objectCollection<GridViewDataColumn>ObservableCollection<GridViewDataColumn>GridViewColumnCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewColumnCollection class.
public GridViewColumnCollection(GridViewTemplate owner)
The owner.
Properties
Gets or sets the allow case sensitive names.
public bool AllowCaseSensitiveNames { get; set; }
The allow case sensitive names.
Gets the owner.
public GridViewTemplate Owner { get; }
The owner.
Gets the GridViewColumn with the specified column name.
Methods
Adds the column with specified name.
Adds the range.
public virtual void AddRange(params GridViewDataColumn[] gridViewColumns)
The grid view columns.
Removes all elements from the Collection<T>.
protected override void ClearItems()
Overrides:
Determines whether a GridViewDataColumn with the specified name exists in the collection.
Gets the name of the column by field.
public GridViewDataColumn[] GetColumnByFieldName(string fieldName)
Name of the field.
Returns:Gets the column by header text.
public GridViewDataColumn[] GetColumnByHeaderText(string headerText)
The header text.
Returns:Overridden. Inserts an item into the collection at the specified index.
protected override void InsertItem(int index, GridViewDataColumn item)
Overrides:
Removes the specified column name.
Removes the element at the specified index of the Collection<T>.
Sets the item.
protected override void SetItem(int index, GridViewDataColumn item)
The index.
itemGridViewDataColumnThe item.
Overrides: