Multiplying Columns in a DataGrid
Posted on 2004-10-04
Please help! What I want to do is SO simple, but getting information on anything other than a simple DataGrid seems impossible.
I am setting up a datagrid for a shopping cart, with the item and its amount populated from the database, no problem. I want to add two template columns, one with a textbox control, defaulted to 1, for the quantity, and another with a label that displays the amount x qty. The next step will be to add an update button so that if the user changes the quantity, they can update the total amount. I just cant seem to work out how to display the total for each line when the grid loads - any clues?
If anyone knows of any good resources that go beyond standard data controls and explains how to programmatically control them, please let me know!!