ICSAutomation
asked on
Find keyfield in a DataTable
How can find out, if field in a DataTable is a keyfield ?
What you could do is to check for "Unique" property for a particular column..this returns a bool value..If true it tells you that all the values in the this column for all rows is unique.
something like this
bool isUnique = ds.Tables[0].Columns[0].Un ique
something like this
bool isUnique = ds.Tables[0].Columns[0].Un
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
David