1
Answer

problem with datagridview

Deepak Pandey

Deepak Pandey

14y
2.6k
1

window application
 in datagridview there is combobox which get data from database which show items...
when we select an item in combobox then its price will display corresponding price in textbox which is also in datagridview  and when we multiply the qty and price of selected item it will display price ....
all the controls for item,price,qty,amount are in datagridview...
and i also want to display the total amount of all items in the textbox which is outside the datagridview...
 
thanks
 
Answers (1)
0
Crish

Crish

NA 3.7k 76.4k 14y
hi

use datagridview's Rowdatabound event for calculating amount. then store it in textbox which u have taken outside of the grid.

you can find each label control values in Rowdatabound event . Sum of there and finally store value in textbox.

Don't forget to Mark Do you like this Answer
 that solved your problem!
Next Recommended Forum