| |||||||
DataColumnCollection.Clear MethodSystem.Data Namespace DataColumnCollection Class Clears the collection of any columns. [ VB ] Public Sub Clear ( ) [ C# ] public void Clear ( ); [ C++ ] public: void Clear ( ); [ JScript ] public function Clear ( ); RemarksUse this method to remove all DataColumn objects from the Columns collection of a specified table. To remove a particular DataColumn from the collection, use the Remove method. This method resets the Columns.Count property to 0. If the collection is succesfully changed by adding or removing columns, the CollectionChanged event occurs. ExampleThe following example gets the DataColumnCollection of a given DataTable, then clears the collection.
See Also |
| ||||||
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