Hi there!
Are you using DataGrid or DataGrid2?
Best would be to add an 'OnChange'-event to your input widget for quantity that then updates the price using either a micro- or nanoflow. Based on how your data is retrieved (database or association) you need to either refresh your current object or the parent object