Class GridViewColumnCollection
Represents a collection of GridViewColumn objects.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class GridViewColumnCollection : ObservableCollection<GridViewColumn>, IList<IFieldDescriptor>, ICollection<IFieldDescriptor>, IEnumerable<IFieldDescriptor>, IEnumerable
Constructors
GridViewColumnCollection()
Initializes a new instance of the GridViewColumnCollection class.
Declaration
public GridViewColumnCollection()
GridViewColumnCollection(GridViewDataControl)
Initializes a new instance of the GridViewColumnCollection class.
Declaration
public GridViewColumnCollection(GridViewDataControl owner)
Parameters
GridViewDataControl
owner
The GridViewDataControl that owns the columns in the collection. |
Properties
Item[Int32]
Gets or sets the GridViewColumn with the specified unique name.
Declaration
public GridViewColumn this[int index] { get; set; }
Parameters
System.Int32
index
|
Property Value
GridViewColumn
|
Remarks
A separate integer indexer is needed, as XAML parser will first invoke the this[string] indexer of the super class before using the inherited integer indexer.
Item[String]
Gets or sets the GridViewColumn with the specified unique name.
Declaration
public GridViewColumn this[string columnUniqueName] { get; }
Parameters
System.String
columnUniqueName
|
Property Value
GridViewColumn
|
Methods
AddRange(IEnumerable<GridViewColumn>)
Adds the elements of the specified collection to the end of GridViewColumnCollection.
Declaration
public void AddRange(IEnumerable<GridViewColumn> items)
Parameters
System.Collections.Generic.IEnumerable<GridViewColumn>
items
|
RemoveItems(IEnumerable<GridViewColumn>)
Removes the elements of the specified collection from GridViewColumnCollection.
Declaration
public void RemoveItems(IEnumerable<GridViewColumn> items)
Parameters
System.Collections.Generic.IEnumerable<GridViewColumn>
items
|