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
770
e.Cell.Row.Cells("Quantity").Value cannot reset the cell value.
posted

Hi guys.

I have a wingrid with CellChange event will be triggered  when user enter a value into certain cell.

I will check the validity of the value, if found error then I used e.Cell.Row.Cells("Quantity").Value=DBNull.Value.

Unfortunately, the wingrid is not updated until the cell lost focus.

I tried to use wingrid.UpdateDate to see if the grid can be updated after setting the value but I failed.

 

Please advice..

  • 17259
    Offline posted

    In the CellChange event, the Value is still the old value and the Text is updated only. Anyway, I think it is better to do it in the BeforeCellUpdate event.