Skip to end of metadata
Go to start of metadata

Columns object provides a collection for the columns contained in WebGrid control.

Definition

public class Columns : ISCollectionBase, ISerializable

Summary

The following table summarizes the members exposed in this class.

Public Constructors

Columns Constructor() Initializes a new instance of the Columns class with no argument.
Columns Constructor(WebCombo) Default constructor for Columns.

Public Properties

IsReadOnly Returns a Boolean value indicating whether the collection is read-only.
this[int] Property indexer for the collection.

Public Methods

Add(string) Add Column object to Columns collection.
Add(WebComboColumn) Add an Column object into the Columns collection.
Clear() Removes all Column objects from the collection.
CopyFrom(Columns)
GetByFieldName(string)
GetEnumerator() Returns an enumerator object for the collection.
GetNamedItem(string) Property indexer for the collection. Uses the Name string to return an WebGridColumn object.
GetVisibleColumnsCount()
ShowOnlyColumns(String[])

Public Constructors

public Columns()

Initializes a new instance of the Columns class with no argument.

public Columns(WebCombo o)

Default constructor for Columns.

Parameters

o

Public Properties

public bool IsReadOnly { get; }

Returns a Boolean value indicating whether the collection is read-only.

public WebComboColumn this[int index] { get; }

Property indexer for the collection.

Parameters

index

Public Methods

public void Add(string FieldName)

Add Column object to Columns collection.

Parameters

FieldName The data column field to add.

public int Add(WebComboColumn column)

Add an Column object into the Columns collection.

Parameters

column The Column object to be added.

Return Types

The index of the newly added Column.

public void Clear()

Removes all Column objects from the collection.

public Columns CopyFrom(Columns passIn)

Parameters

passIn

public WebComboColumn GetByFieldName(string fieldName)

Parameters

fieldName

public IEnumerator GetEnumerator()

Returns an enumerator object for the collection.

public WebComboColumn GetNamedItem(string name)

Property indexer for the collection. Uses the Name string to return an WebGridColumn object.

Parameters

name

public int GetVisibleColumnsCount()

public void ShowOnlyColumns(String[] fieldName)

Parameters

fieldName
  • No labels