M
Matt Tapia
I have a dataset (dsAccounts) with one table. It has a column called
"strAccountNo" that I want to make the primary key. I use the following line
of code:
dsAccounts.Tables(0).PrimaryKey =
dsAccounts.Tables(0).Columns("strAccountNo")
but I get this error:
Value of type 'System.Data.DataColumn' cannot be converted to '1-dimensional
array of System.Data.DataColumn'.
Any suggestions?
"strAccountNo" that I want to make the primary key. I use the following line
of code:
dsAccounts.Tables(0).PrimaryKey =
dsAccounts.Tables(0).Columns("strAccountNo")
but I get this error:
Value of type 'System.Data.DataColumn' cannot be converted to '1-dimensional
array of System.Data.DataColumn'.
Any suggestions?