07-28-2017 01:32 AM
Mouse events still work when control is disabled. Thus use mouse move event to programmatically enable it when over the scrollbar (CellPosition = 0,0 and InBounds = false). Seems to be work well.
07-31-2017 12:39 AM - edited 07-31-2017 12:40 AM
@RogerSaele wrote:
Mouse events still work when control is disabled. Thus use mouse move event to programmatically enable it when over the scrollbar (CellPosition = 0,0 and InBounds = false). Seems to be work well.
Well, there was a bug (could still edit cell 0,0), should use OR not AND. And mouse wheel does not work when disabled. Discarding mouse down seem to work better.
03-27-2019 01:41 AM
This is an old thread, but turns up quite high on search results. One way to prevent user changing the values is to use "Value change" event and override the change with the old value. This way scrolling and selecting cells is possible, and values can be copied from table.