O'Reilly logo

ADO.NET Programming in Visual Basic™ .NET by Bob Howell, Steve Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The DataColumn Class

The DataColumn class is used to store the metadata about each column. Metadata is information that describes the data in the table. This class includes properties such as the data type, column name, and data size. Each DataTable contains a collection of DataColumn objects (an instance of DataColumnCollection) accessible through the Columns property.

The Columns Collection

The DataColumnCollection class has properties and methods of its own for managing the collection of columns it contains. These include the Count property, and methods for adding/deleting members of the collection. Let’s look at some of the properties and methods.

  • Count— The number of items in the collection.

  • Item— Returns the DataColumn object at the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required