update database based on user interaction

Jan 21 2010 1:02 PM

I have a form which uses a tableadapter and configuration dataset to display records of sites, I desire to create the abiility for users to enable/disable sites based on a field within the record. I am not sure how to pass the currently selected site to my stored procedure, how do I grab this value from my form, in addition it needs to grab the value of another field called grp and on a button click it should then pass this data to a stored procedure, where it will either enable or disable the site.