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
Loading
CrishPosted Jun 1, 2010, 1:26 AM
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!