Columns Collection

               

The Columns collection contains all stored Column objects of a DataGrid control.


Syntax

Columns(index)

Columns.Item(index)

Remarks

You can use the properties and methods of the Columns collection to add and remove Column objects, count the number of columns in the Columns collection, and address individual columns of the Columns collection.

The Columns collection can be accessed through the Columns property of the DataGrid control.