Home Forums WinForms controls Xceed Grid for WinForms Using ValidationProvider with Grid bound to DataSet Reply To: Using ValidationProvider with Grid bound to DataSet

User (Old forums)
Member
Post count: 23064

You need to do exactly the same thing in a bound grid as is done in the unbound grid sample. That is, in the designer, right-click on the validationProvider1 icon, and select “Set Up Validation” from the menu.

In the Validation Configuration window, select the columns you want to validate, and simply setup the validation criterion through the different choices that are presented.

Here is a <a href=”http://www.xceedsoft.com/cs/download/XceedGrid/VisualBasicNet/VB2003_GRD_INV.zip “>sample</a> that shows this. The UnitsInStock column is taken as an example. It is set so that any value that is not between 0 and 1000 will invoke the validation error.

Imported from legacy forums. Posted by André (had 2794 views)