I need to update items in a database queue, so I am attempting to
write a ASP.NET utility to do this instead of the users just typing
SQL. I am using C# to write the code and have the basics layed out.
I am using a template column and have put a checkbox in the template
(cbxSelect).

Here's what I need to have done:
1. The user clicks on row(s) to be removed from the queue.
2. The user will click on a REMOVE button, thus firing off the SQL to
update the queue
3. Post the updated queue back to the datagrid after it's been
updated (and maybe have a message saying [x]rows have been updated.

Here's where I have problems:
In step #2 from above, I cannot get the queue_id from the datagrid row
(the queue_id is not the same number as the row number). I have read
numerous posts that say to use DataKeys[e.Item.ItemIndex], but when I
do this, there isn't and Item.ItemIndex being passed.

I currently have the logic set up so it goes through each row and
checkes if the checkbox is checked/unchecked. After this, I get
stuck. Can anyone offer and code examples or links to check out?
Everything I've seen is either too different or I can't get to work.
I am not interested in updating the rows on the fly, but would rather
do a batch update so I only have one update statement.

Any guidance would be helpful.
Thanks.