rosmiq
10-12-2006, 09:16 AM
I am writing an asp application in vb.
I have a datagrid which is bound to data using SQL Express. I have used the Edit, Update, Cancel options and have inserted dropdownlists in some of the fields instead of the usual text boxes, this works all fine.
I would like to add a delete button, but I don't want the record to physically delete I just want the database to mark the record, i.e. in a field I have it as a boolean, so this is hidden but still stored as deleted.
The thing I would like to do is add a CheckBox or use the Delete option (either way), when they click on this button/checkbox, a dropdownList appears asking them to select a reason for deleting record (whether it be in the datagrid or out), once they have selected their option the record selected gets marked for deletion.
Does anybody have any good suggestions to show me please?
I have created a checkbox click event but I will need the value of the dropdownlist before it gets marked and not sure quite how to achieve this.
Please help!
Thanks,
rosmiq
I have a datagrid which is bound to data using SQL Express. I have used the Edit, Update, Cancel options and have inserted dropdownlists in some of the fields instead of the usual text boxes, this works all fine.
I would like to add a delete button, but I don't want the record to physically delete I just want the database to mark the record, i.e. in a field I have it as a boolean, so this is hidden but still stored as deleted.
The thing I would like to do is add a CheckBox or use the Delete option (either way), when they click on this button/checkbox, a dropdownList appears asking them to select a reason for deleting record (whether it be in the datagrid or out), once they have selected their option the record selected gets marked for deletion.
Does anybody have any good suggestions to show me please?
I have created a checkbox click event but I will need the value of the dropdownlist before it gets marked and not sure quite how to achieve this.
Please help!
Thanks,
rosmiq