Validation for datagrid textbox
-
hi, I have a button column in my datagrid. after editing in my datagrid i am updating the row as usual. But i want to validate the textbox values (the textboxes are in
EditItemTemplate
) before updating the row. Where should i place my validation code. thanks in advance.:((:((:(( Tirthadip -
hi, I have a button column in my datagrid. after editing in my datagrid i am updating the row as usual. But i want to validate the textbox values (the textboxes are in
EditItemTemplate
) before updating the row. Where should i place my validation code. thanks in advance.:((:((:(( TirthadipYou can put a validator in edititem template. In EdititemTemplate give your textbox a ID. YOu can do soemthign liek this: You can replace requiredfield validator with anyother kind of validator. Hope thisone works for you!! -- modified at 10:16 Monday 12th June, 2006