Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
SetCellValue not working for me
posted

I have an event handler for when a value of a cell is changed.  The event handler sets the value of another cell in the same record, but the new value is not displayed until the update method is called.

I don't want to 'update' the row as it is typically the row for adding a new record.  I don't want to add the new record until after other columns are completed.

 Neither of these work for me:

                dr.Cells["Rate"].Value = amount;


                dr.SetCellValue(dr.FieldLayout.Fields["Rate"], amount);