Class GridViewColumnCollection
A collection of GridViewColumn objects
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewColumnCollection : ObservableCollection<GridViewDataColumn>, IList<GridViewDataColumn>, ICollection<GridViewDataColumn>, IReadOnlyList<GridViewDataColumn>, IReadOnlyCollection<GridViewDataColumn>, IEnumerable<GridViewDataColumn>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, INotifyPropertyChangingEx
Constructors
GridViewColumnCollection(GridViewTemplate)
Initializes a new instance of the Grid
Declaration
public GridViewColumnCollection(GridViewTemplate owner)
Parameters
Grid The owner. |
Properties
AllowCaseSensitiveNames
Gets or sets the allow case sensitive names.
Declaration
public bool AllowCaseSensitiveNames { get; set; }
Property Value
System. The allow case sensitive names. |
Item[String]
Gets the Grid
Declaration
public GridViewDataColumn this[string columnName] { get; }
Parameters
System.
|
Property Value
Owner
Gets the owner.
Declaration
public GridViewTemplate Owner { get; }
Property Value
Grid The owner. |
Methods
Add(String)
Adds the column with specified name.
Declaration
public void Add(string name)
Parameters
System. The name. |
Add(String, String)
Adds the column with specified name and header text.
Declaration
public void Add(string name, string headerText)
Parameters
System. The name. |
System. The header text. |
Add(String, String, String)
Adds the column with specified name, header text and field name.
Declaration
public void Add(string name, string headerText, string fieldName)
Parameters
System. The name. |
System. The header text. |
System. Name of the field. |
AddRange(GridViewDataColumn[])
Adds the range.
Declaration
public virtual void AddRange(params GridViewDataColumn[] gridViewColumns)
Parameters
Grid The grid view columns. |
ClearItems()
Removes all elements from the System.Collections.ObjectModel.Collection<T>.
Declaration
protected override void ClearItems()
Overrides
Contains(String)
Determines whether a Grid
Declaration
public bool Contains(string columnName)
Parameters
System. The object to locate. |
Returns
System. true if item is found otherwise, false. |
GetColumnByFieldName(String)
Gets the name of the column by field.
Declaration
public GridViewDataColumn[] GetColumnByFieldName(string fieldName)
Parameters
System. Name of the field. |
Returns
GetColumnByHeaderText(String)
Gets the column by header text.
Declaration
public GridViewDataColumn[] GetColumnByHeaderText(string headerText)
Parameters
System. The header text. |
Returns
IndexOf(String)
Indexes the of.
Declaration
public int IndexOf(string columnName)
Parameters
System. Name of the column. |
Returns
System.
|
InsertItem(Int32, GridViewDataColumn)
Overridden. Inserts an item into the collection at the specified index.
Declaration
protected override void InsertItem(int index, GridViewDataColumn item)
Parameters
System.
|
Grid
|
Overrides
Remove(String)
Removes the specified column name.
Declaration
public void Remove(string columnName)
Parameters
System. Name of the column. |
RemoveItem(Int32)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
System. The zero-based index of the element to remove. |
Overrides
Exceptions
System.
|
Rename(String, String)
Renames the specified name.
Declaration
public void Rename(string name, string newName)
Parameters
System. The name. |
System. The new name. |
SetItem(Int32, GridViewDataColumn)
Sets the item.
Declaration
protected override void SetItem(int index, GridViewDataColumn item)
Parameters
System. The index. |
Grid The item. |