Jan 7, 2003 #1 R rmatthew Well-known member Joined Dec 30, 2002 Messages 115 Location Texas I need to add a column to a table in a dataset ?? I know this is probably trivial; but I cant seem to find out how Thanks
I need to add a column to a table in a dataset ?? I know this is probably trivial; but I cant seem to find out how Thanks
Jan 7, 2003 #2 Bucky Well-known member Joined Dec 23, 2001 Messages 791 Location East Coast User Rank *Expert* First create a new instance of the DataColumn class, then use the Add method of the DataTables Columns collection to add the new column to the table. Code: Dim newColumn As New DataColumn("name") myDataSet.Tables(0).Columns.Add(newColumn)
First create a new instance of the DataColumn class, then use the Add method of the DataTables Columns collection to add the new column to the table. Code: Dim newColumn As New DataColumn("name") myDataSet.Tables(0).Columns.Add(newColumn)