Click here to Skip to main content
15,922,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi EveryBody
I m new to programming. I m developing an inventory management application i have to update database after deleteting any row from datagridview. i have no idea to do this anyone tell me how can i do it....

I have 1 textBox and One DatagridView
i m showing entries eg.
entry no. in textbox
details in datagridview
for example
entry no.1 purchase details in datagridview QTY-1 Rate-10rs and Total 10rs
there is multiple details in datagridview i want to edit the entry if deleting any details or row from datagrid its updated but cannot cancel the entry please give me solution
Posted

Rebind the datasource after deleting , i think there a button for deleting items in that event bind your grid again,
datagridvw.databind();
 
Share this answer
 
Hai


reassign the data source to datagridview
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900