Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi there!
small question
I've made a changes in my DataGridVew like this
dgvClients.SelectedRows[0].Cells["cl_cardemitted"].Value=1

how to reflect the data into the SQL data table?
Posted

1 solution

Since the data is bound to the datagrid you need to make the change to the data, not to the grid in order for it to be updated in the database. Provided of course you call some sort of update method to push the data back to the database.
 
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