G
Greg Robinson
Windows Forms Application
Sql Server backend
Controls are bound to a DataSet
I want to restrict the amount of numbers to the right of the decimal a user
can enter into a control that is bound to a sql server numeric, .net
system.decimal.
If the numeric's scale is 2 then the user can only enter 2 numbers to the
right of the decimal. If the numeric's scale is 3 then the user can only
enter 3 numbers to the right of the decimal, etc....
I want this to be dynamic, the control 'knows to do this'.
How can I get the value of the scale through ADO.NET?
Sql Server backend
Controls are bound to a DataSet
I want to restrict the amount of numbers to the right of the decimal a user
can enter into a control that is bound to a sql server numeric, .net
system.decimal.
If the numeric's scale is 2 then the user can only enter 2 numbers to the
right of the decimal. If the numeric's scale is 3 then the user can only
enter 3 numbers to the right of the decimal, etc....
I want this to be dynamic, the control 'knows to do this'.
How can I get the value of the scale through ADO.NET?