ClassGridViewColumnCollection
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
GridViewColumnCollection(GridViewTemplate)
Initializes a new instance of the GridViewColumnCollection class.
Declaration
public GridViewColumnCollection(GridViewTemplate owner)
Parameters
owner
The owner.
Properties
AllowCaseSensitiveNames
Gets or sets the allow case sensitive names.
Declaration
public bool AllowCaseSensitiveNames { get; set; }
Property Value
The allow case sensitive names.
Owner
Gets the owner.
Declaration
public GridViewTemplate Owner { get; }
Property Value
The owner.
this[string]
Gets the GridViewColumn with the specified column name.
Declaration
public GridViewDataColumn this[string columnName] { get; }
Parameters
columnName
Property Value
Methods
Add(string)
Adds the column with specified name.
Add(string, string)
Adds the column with specified name and header text.
Add(string, string, string)
Adds the column with specified name, header text and field name.
AddRange(params GridViewDataColumn[])
Adds the range.
Declaration
public virtual void AddRange(params GridViewDataColumn[] gridViewColumns)
Parameters
gridViewColumns
The grid view columns.
ClearItems()
Removes all elements from the Collection<T>.
Declaration
protected override void ClearItems()
Overrides
Contains(string)
Determines whether a GridViewDataColumn with the specified name exists in the collection.
GetColumnByFieldName(string)
Gets the name of the column by field.
Declaration
public GridViewDataColumn[] GetColumnByFieldName(string fieldName)
Parameters
fieldName
Name of the field.
Returns
GetColumnByHeaderText(string)
Gets the column by header text.
Declaration
public GridViewDataColumn[] GetColumnByHeaderText(string headerText)
Parameters
headerText
The header text.
Returns
IndexOf(string)
Indexes the of.
InsertItem(int, GridViewDataColumn)
Overridden. Inserts an item into the collection at the specified index.
Declaration
protected override void InsertItem(int index, GridViewDataColumn item)
Parameters
index
item
Overrides
Remove(string)
Removes the specified column name.
Declaration
public void Remove(string columnName)
Parameters
columnName
Name of the column.
RemoveItem(int)
Removes the element at the specified index of the Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
index
The zero-based index of the element to remove.
Exceptions
index is less than zero.-or-index is equal
to or greater than Count.
Overrides
Rename(string, string)
Renames the specified name.
SetItem(int, GridViewDataColumn)
Sets the item.
Declaration
protected override void SetItem(int index, GridViewDataColumn item)
Parameters
index
The index.
item
The item.
Overrides