Quote:
|
mainly because I don't know how to grab the value of the selected row Id and how to deal between onrowdeleting and onrowdeleted.
|
Once again: have you looked into Model Binding as I suggested earlier? With Model Binding your delete method simply gets passed the ID of the item to be selected.
That said, you should be able to retrieve the key using something like this:
Code:
int id = Convert.ToInt32(e.Keys["Id"]);
Quote:
|
what else would I use besides data sets and data tables to bind the information on with a data adapter?
|
Not much ;-) But you don't need a data adapter at all. A lot of the code you're posting is "old skool" in my opinion. The things you're doing here are a lot easier with, say, Entity Framework and Model Binding. That way you can focus on your business problems and not spend a lot of time writing boring code to set up parameters and such.
Cheers,
Imar