Edit and update multiple rows at a single click

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

Guest

Dear

How can I select multiple checkboxes and update
it to database at a single click on update button.The GridView
allows to edit only one row at a time so for each row I have to
select edit and than select checkbox and then click on update.
How can I select multiples checkboxes and update them at
one click.

Regards,
Rakesh
 
Hello Rakesh

You can use datagrid column to show checkbox.(But dont write event
onClick of check box)
Save state of check box use some datagrid view state property(if
require)
Then put button below grid.
Write onclick even for button.
Check each value of each check box (iterate through each row of grid)
Based on check box value do operation.

I hope this will help you.

Good luck
 
Dear,

Thanks for the prompt response.
I have just starting learning .Net so I request you to
give me some referenece web sites from where I can see
complete code to do this.

Thanks again,
Rakesh
 
Back
Top