While Creating DataSet on Red Colored statement error occured which is Mentioned in Green Color....(A'm using Visual Studio 2005 and SQL Server 2005) Please Help......
'Create New DataSet
Dim ds As New DataSet("DataSetVendorInfo")
'Create a new Table and Columns
Dim dTable As New DataTable("Vendors")
dTable.Columns.Add("Ven_ID", System.Type.GetType("System.Int32"))
dTable.Columns.Add("FName", System.Type.GetType("System.String"))
dTable.Columns.Add("LName", System.Type.GetType("System.String"))
dTable.Columns.Add("Ven_Addr", System.Type.GetType("System.String"))
dTable.Columns.Add("Ven_City", System.Type.GetType("System.String"))
dTable.Columns.Add("Ven_State", System.Type.GetType("System.String"))
dTable.Columns.Add("PinCode", System.Type.GetType("System.String"))
dTable.Columns.Add("EmailID", System.Type.GetType("System.String"))
dTable.Columns.Add("Contact_No", System.Type.GetType("System.String"))
dTable.Columns.Add("Fax_No", System.Type.GetType("System.String"))
dTable.Columns.Add("Years", System.Type.GetType("System.String"))
dTable.Columns.Add("Months", System.Type.GetType("System.String"))
dTable.Columns("Ven_ID").AutoIncrement = True
ds.Tables.Add("Vendors")
'Define Primary Key
Dim keys() As DataColumn = (ds.Tables("Vendors").Columns("Ven_ID"))
Here Error is: Value of Type 'System.Data.DataColumn can not be Converted to '1-dimensional Array of 'System.Data.DataColumn
ds.Tables("Vendors").PrimaryKey = keys
Dim dr As DataRow = dTable.NewRow
dr(0) = txtFName.Text
dr(1) = txtLName.Text
dr(2) = txtAddress.Text
dr(3) = ddlCity.Text
dr(4) = ddlState.Text
dr(5) = txtPinCode.Text
dr(6) = txtEmail.Text
dr(7) = txtContact.Text
dr(8) = txtFax.Text
dr(9) = ddlYears.Text
dr(10) = ddlMonths.Text
dTable.Rows.Add(dr)