KoolGrid - Powerful PHP GridKoolGrid - Powerful PHP GridFullVersion 5.7.0.0 released on 25/11/2016

Validation - Insert/Edit Validation

*Note: When editing or inserting row, you may test putting non-integer to CustomerNumber field or leave other input fields empty.
CustomerNumber 
CustomerName 
Phone 
City 
 
16600
Handji Gifts& Co
+65 224 1555
Singaporedfd
167
Herkku Gifts
2267 3215
Bergen
169
Porto Imports Co.
(1) 356-5555
Lisboa
171
Daedalus Designs Imports
20.16.1555
Lille
172
La Corne D'abondance, Co.
(1) 42.34.2555
Paris
175
Gift Depot Inc.
2035552570
Bridge Water
177
Osaka Souveniers Co.
+81 06 6342 5555
Kita-ku
181
Vitachrome Inc.
2125551500
NYC
186
Toys of Finland, Co.
90-224 8555
Helsinki
187
AV Stores, Co.
(171) 555-1555
Manchester
Page 1 in 9, items 1 to 10 of 89.
* Note:Generate your own grid with Code Generator

Description & Sample code

This example shows you how to add validator to grid column. The validator will ensure the input from user is correct before doing data operation task. In above example, we have used RequiredFieldValidator and RegularExpressionValidator. The RequiredFieldValidator make sure that input from user is not empty. And the RegularExpressionValidator helps to ensure the input for customerNumber is integer.

Together with above two validators, there are other two validators: RangeValidator and CustomValidator, all cover full range of grid input validation.