By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,928 Members | 1,200 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,928 IT Pros & Developers. It's quick & easy.

How to create non-unique constraint on DataTable

P: n/a
Is there a way to create an index (non-unique) constraint on a
DataTable column?

Here is some code sample I would like to run, but the constraint can
not be unique.

Dim IDDataColumn As DataColumn
IDDataColumn = ds.Tables(1).Columns("MyNonUniqueID")
ds.Tables(1).Constraints.Add("IndexID", IDDataColumn, False)

Nov 9 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.