I have a simple gridview:
A sql datasource to bind data from table data to gridview.
On gridview row updating I would like to clear the cell values from certain columns of the current editing row, so the values should be also deleted from the table data. How can I do that?
Something like:
SqlDataSource1.DeleteCommand = "Delete value from column1,column2 where rowid=@rowid"; //I need the right statment
SqlDataSource1.Delete();
I think there is something confusing here. If you want to “detele” 2 column values, then you can simply make them null :
or just delete the whole row