Hi,
I have a gridview with columns as Item,price,quantity. I want to calculate for each row which should be like:
total=price*quantity and finally calculate the total for all the items.. How to do this? please guide
You cannot use RowDataBound as it is only called when you call Databind()
Instead use the TextChanged event and there loop through the GridView rows
foreach(GridViewRow row in GridView1.Rows)
{
//Your logic here
}
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.