The edittemplate for the names includes a locked textbox and a dropdown.
The user selects a name and the textbox is populated based on the selection.
What I would like to to do is: When the gridview is opened for editing and on the click of the update button (required field validator and regular expression validator already in place in the datagrid template field), check that the user has put in a value less than or equal to the original quantity and greater than the value already stored in received quantity.
If the condition fails I want to pop up an alert telling the user why the row / cell wasn't updated and puts the focus back into the cell or cancels the editing event for the row... My rowupdating event is posted below and works fine, except for it allows any integer values greater than 0 to be updated into the datatable...
Click "Mark as Answer" on the post that helped you.
So before the INSERT button is clicked I need the following Drop Down List Item to be populated, otherwise it should ask the user to ‘select an item’ Below is the script for the GRIDVIEW If the user forgets to select a Chaplain from the above list, then the default value is stored ‘0’, I want this value to be stored in the database, so there want a VALIDATION so the user must select an option.
The gridview has 6 columns, however I am only interested in two of these columns.
Each record contains from 1 to 3 signatures each with a date that the name was entered. Otherwise include an Id on the grid so that you can pass the changed value to an update stored procedure.Again you will need to check that the value is between limits.Hi, I am using grid view where user can type dates. I want to validate the date before inserting into the table. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]