Validating Data in DataGrid
-
hi, i have used a datagrid control to display the data in my aspx page. i have also set the validation controls to required fields and it works! but it works a bit too well!! let me explain the scenario a little bit. i have used template columns for all the data fields and at the footer of each column, i have placed an empty textbox for accepting new records. Furthermore i have a separate template column to show the edit, save/update and cancel buttons, and at the footer of this column i have placed another set of buttons for saving the new entered data. i have placed a required filed validation for one of the fields 'User Id'. this validation is also at the footer of the column, therefore it checks for the insertion of a NEW User Id. When the no data is entered, the validation works and the error messege is diplayed. also the save button for the new record does not work. but the problem is that the edit buttons dont work as well. and i want all the other buttons to work except for the saveing the new record. well i have explained a bit too much havent i? sorry about that! i have tried to be as short as possible. but please is there any way around this. i am also willing to use javascript, but i am not very familiar with its use. so please recommend me some good links or code. thanx in advance! ☺«««DTA»»»☺