i have the following situation. how can I change the value in the column in a dataGridView?
thanks!
l_rankov 0 Newbie Poster
Recommended Answers
Jump to PostChange the value in the dataset it is bound too, and then update the datagrid.
Jump to PostHello, you can use below code:
private void DataGridView1_CellValueChanged( object sender, DataGridViewCellEventArgs e) { // Update the balance column whenever the value of any cell changes. UpdateBalance(); } private void DataGridView1_RowsRemoved( object sender, DataGridViewRowsRemovedEventArgs e) { // Update the balance column whenever rows are deleted. UpdateBalance(); } …
All 6 Replies
Mike Askew 131 Veteran Poster Featured Poster
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
messyleon 0 Newbie Poster
l_rankov 0 Newbie Poster
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
jasonrle0332 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.