| |||||||||||||
DataColumn.Unique PropertySystem.Data Namespace DataColumn Class Sets or retrieves a value indicating whether the values in each row of the column must be unique. Syntax
Property ValueThis property accepts or returns only a boolean value: true if the value must be unique; otherwise, false. The default is false. Exceptions
RemarksOnce this property is set, a unique constraint will be created on this column to ensure values are unique. Alternatively, you can also add a UniqueConstraint to the DataTable to which this column belongs to ensure the values are unique. ExampleThe following example initializes new DataColumn, sets its properties, and adds it to a table's columns collection.
See AlsoDataColumn Members AllowDBNull UniqueConstraint Constraints |
| ||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme