select multiple items from datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello everyone

I have a web form that postback a datagrid that shows the most recent
(pending)requests submitted to the database. On this grid I would like the
user to have the ability to chose mutiple request items that changes the
status of the request to approve from pending with the click of the "approve
all request" command botton. Can anyone help me with the code to perform such
a batch job.


Thanks In Advance
kw
 
You need to add a checkbox column on one side of the datagrid. When it is
posted back you should be able to access the values of the checkboxes from
the properties of the datagrid.

e.g
((CheckBox)grid1.Rows[x].Cells[y].Controls[0]).Checked


Sorry for the briefness but have got the time to check it out fully right now

Ciaran O'Donnell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top