HI
Here is the reason why its not working
DataTable userTable = new DataTable();
DataSet ds = new DataSet();
userTable.Columns.Add("userID", Type.GetType("System.Int32"));
userTable.Columns.Add("username", Type.GetType("System.String"));
DataRow userRow = userTable.NewRow();
userRow["userID"] = 1;
userRow["username"] = "Peter";
userTable.Rows.Add(userRow);
userRow = userTable.NewRow();
userRow["userID"] = 2;
userRow["username"] = "Paul";
userTable.Rows.Add(userRow);
userRow = userTable.NewRow();
userRow["userID"] = 3;
userRow["username"] = "Mary";
userTable.Rows.Add(userRow);
ds.Tables.Add(userTable);
MessageBox.Show(ds.Tables[0].Columns["username"] ); /**Compile error **/
/*Change the above code and try*/
MessageBox.Show(ds.Tables[0].Columns["username"].ToString() );
So change
Description = DataSet.Tables("ITEM").Columns("Description")
to
Description = DataSet.Tables("ITEM").Columns("Description").ToSt ring()
Cheers
Vinu
"Des" <de*********@aol.com> wrote in message news:11*********************@g14g2000cwa.googlegro ups.com...
ID is not the Problem ID is an integer as it is an auto number. The
problem is with
Dim Description as String
Description = DataSet.Tables("ITEM").Columns("Description")
BC30311: Value of type 'System.Data.DataColumn' cannot be converted to
'String'.