How would I add a "primary key" to an existing variable of the type dataSet? I tried something like:
resultDataSet.Tables(0).PrimaryKey(0) = resultDataSet.Tables(0).Columns("ParticipantID")
where I only have one table in my dataset and the pk would be the "ParticipantID" column. However, I get an index out of range error. Any ideas?
resultDataSet.Tables(0).PrimaryKey(0) = resultDataSet.Tables(0).Columns("ParticipantID")
where I only have one table in my dataset and the pk would be the "ParticipantID" column. However, I get an index out of range error. Any ideas?