none
ASP.NET GridView How to multiply quantity to price and show the total in the amount cell RRS feed

  • Question

  • Hello Friends 

    I have webform which have a GridView. There are quantity, price and amount field. 

    When user enter quantity in the quantity cell in edit mode in the gridview and the quantity will multiply with the price and the multiplied value will be showed in the amount field. 

    I have attach file that contain the source code. 

    Please give me reply as soon as possible. 

    Waiting for your reply 

    Thanks and regards 
    Hasnain Ahmad 
    Friday, March 6, 2015 11:46 AM

Answers

  • Hi,

    It seems to be asp.net coding issue. So I suggest that you can post it in asp.net forum where you can get better answers.

    http://forums.asp.net/

    In addition, please refer to the following code to get the textbox and then set the value in textchanged event.

    (TextBox)GridView1.Rows[GridView1.EditIndex].Cells[2].Controls[0];


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Pengzhen Song Wednesday, March 18, 2015 1:32 AM
    Wednesday, March 11, 2015 7:51 AM