| |||||||
DataColumn Constructor ( )System.Data Namespace DataColumn Class Initializes a new instance of a DataColumn class. [ VB ] Public Sub New ( ) [ C# ] public DataColumn ( ); [ C++ ] public: DataColumn ( ); [ JScript ] public function DataColumn ( ); RemarksWhen created, a new DataColumn object has no default ColumnName or Caption. When added to a DataColumnCollection, however, a default name ( "Column1", "Column2", and so on ) is given to the column. ExampleThe following example initializes a new DataColumn using this constructor, sets various properties, and adds it to a DataTable object's DataColumnCollection.
See AlsoDataColumn Members DataColumn Constructor Overload List ColumnName Caption DefaultValue DataTable DataType |
| ||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme