How to get the value onto the column in datagridview
-
Hello I am having a datagridview with columns Existing balance Credit Debit and one button save.If i Click on the save button the value i entered in the credit or debit column must get into the column existing balance. Plz help me....
-
Hello I am having a datagridview with columns Existing balance Credit Debit and one button save.If i Click on the save button the value i entered in the credit or debit column must get into the column existing balance. Plz help me....
Is it the bound DataGridView? If yes, then set the Expression property of the Balance column(in the datatable) to sum of credit and debit. If not, then loop through all the rows and set the value in the balance column's cell in the button click event.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD