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
345
How do I default a cell value based on the value of another cell
posted

Say I want to default the value of cells B and C based on the data input into cell A, how do I do this.

My thought was to save e.PreviousActiveCell and e.NewActiveCell in the ActiveCellChanging event and then set the value in the ActiveCellChanged event, or alternatively set the values in the EnteringCell event. 

However this doesn't work because there seems to be strange delay before ActiveCell.Row.Data gets updated.  If A is a TextColumn then Row.Data.A appears to still be null when I enter cell B, and not have a value until I enter C.  And if A is a TemplateColumn, which in my case it is, Row.Data.A does not seem to get filled until I actually leave (commit) the row.