Ok i dont know if i made that to confusing or not. When there is an error the people writing our specs for this app want the cell to revert back to the value that was in the cell before the invalid data was entered. So when u say just use e.cancel = true that wont work. All that does is gives the error and FORCES them to fix it or hit escape to reset the value which again the people writing the specs dont like. They just want the value to be reset. Now unless i''m doing something wrong, e.cancel = true doesnt do anything other then make them fix the invalid data. I''ve attached a sample for you to show u what i''m talking about. I have 2 grids on the sample. The grid on the left has selectall set and the grid on the right has doubleclickoncell. Now i''ve commented out the canceledit like u said in the grid on the left. All it does is gives and error message and if u go in after the following and uncomment and run again thats all it still does unlike the grid on the right. Valid values for all cells in both grids are 501 - 532. So if u go to each grid in 1,1 and type in like 999 and then the key is to MOUSE OFF THE CELL(not arrow)u will see that on the cell on the left grid it will give the error and not reset or canceledit the data. if u do the same to 1,1 on the right grid u will get the error then notice by doing the canceledit the data reverts back to what was orginally in the cell before the invalid data was entered. Now again if u un comment the canceledit for the grid on the left u will notice they dont behave the same way. Maybe most people want them to fix it but the way we''ve been asked to do it is to put the value back so in case they dont want to change it now if they have made a mistake.
Thanks
Phil
activecurrentcell_4063.zip