I have a table ['Id', 'Num' , 'Price' 'Total'] where Total = Num*Price,
The Total column is readonly, When i type a value in Num colunm or Price column in 'Click here add new a row', i want to set the value to Total's cell is Num*Price
How to do it?
Regards
Tung
1 Answer, 1 is accepted
0
Julian Benkov
Telerik team
answered on 12 Aug 2008, 10:06 AM
Hi Tung,
You can handle CellEndEdit event of RadGridView. Consider the following code snippet:
if (this.radGridView1.CurrentRow is GridViewNewRowInfo && (e.ColumnIndex == 3 || e.ColumnIndex == 4)) //ColumnIndex 3 and 4 are for Num and Price columns