how to perform calculation on datagrid column values in c# windows application?

Jul 9 2006 4:53 PM

Hi Everyone,

                    Im developing C# Windows application. In that Im binding database values in datagrid and updating the updated grid values with database values by using currentcellchange event. Before that I have to perform calculation in the datagrid itself. Like Im binding unitrate values n quantity values in the grid from the database. If quantity values is changed in the grid it should be updated when cursor moves to other column or by pressing enter key. How to do this. Is there any event handler?