Question : SqlDataSource, Gridview and Update & Delete process

I have just been using the SqlDataSource to Select data into the gridview. If adding or updateing, I was using the rowUpdating & rowdeleting events and manually processing it.

That is because it seemed the Select was the only one that the parameters were acknowledge. Now I found out that when not setting the Upd/delete queries in the SqlDataSource quickset, but through the properties UpdateQuery & DeleteQuery areas you have a way to update the parameters.

But, I am still uncertain how you pass it the fields that are in the Selected row of the datagrid.

I set the delete query & parms and just set the Parameter souce to None, it still deletes the correct row. (or last one Not sure)..

But the update query is different. It updates the right row, but just empties the field, it doesn't put the new data into it.

So how do you select the correct field from the datagrid especially for the update function?

Answer : SqlDataSource, Gridview and Update & Delete process

if u are looking for portable application for thumb drive, check below

all application in Public license and free ware.

http://www.lupopensuite.com/

you can run web server from your thumb drive and can put your application as a link.

http://www.pendriveapps.com/usb-webserver/

Random Solutions  
 
programming4us programming4us