Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys. I would like to know how to implement the below scenario.

I have 5 buttons loaded dynamically during form load. Each button has Amount of Rs.100.

I click Button 1 and redeem 50 Rs. and I click Button 2 and redeem 10 Rs.
in UI it will shown as
Button 1 = 50
Button 2 = 10 in gridview

Again I use the same Button 1 to redeem 20Rs. Now UI should show
Button 1 = 70
Button 2 = 10
How to achieve this updation of Button 1? .

What I have tried:

this.dataGridView1.Rows.Add(ButtonName, "$" + Amount.ToString("F"));

I used this . But it is adding new rows even when i update the same button.
Posted
Updated 2-Feb-21 8:22am
v2

1 solution

 
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