I am using a RadGridView
to display items that are being sold. In the same row I also have a "Quantity", "Unit Price", "Total Price" column.
When a user change the value of the "Quantity" Column I want to fire an event that will calculate the value of the "Total Price" column by multiplying the "Quantity" by the "Item Price"
How can add such an event that will only be triggered if the value of the column "Quantity" is changed?
I have tried this which had no affect
private void radGridView1_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e) {
double itemPrice = Convert.ToDouble(e.CurrentRow.Cells["Unit Price"].Value);
int itemQty = Convert.ToInt32(e.CurrentRow.Cells["Qty"].Value);
double totalPrice = itemPrice * itemQty;
e.CurrentRow.Cells["Total Price"].Value = totalPrice.ToString();
}