M
mehdi_mousavi
Hi folks,
Consider a typed dataset, that has got a datatable. The datatable, on
the other hand, has got some columns one of which is of type string. I
would like to know how am I supposed to limit the values that can be
set on the mentioned column to "choice1", "choice2" and "choice3".
i.e., I would like the runtime library throw an exception if someone
tries to set another value (out of those choices named above) for the
mentioned column.
[FYI: I'm using .NET FX 2.0 under VS 2005].
Any help would be highly appreciated,
TIA,
Mehdi
Consider a typed dataset, that has got a datatable. The datatable, on
the other hand, has got some columns one of which is of type string. I
would like to know how am I supposed to limit the values that can be
set on the mentioned column to "choice1", "choice2" and "choice3".
i.e., I would like the runtime library throw an exception if someone
tries to set another value (out of those choices named above) for the
mentioned column.
[FYI: I'm using .NET FX 2.0 under VS 2005].
Any help would be highly appreciated,
TIA,
Mehdi