DBGrid editing control lazarus / 16-Databases ---------------------------------------------------------------------- egsuh · 2024-12-14 03:00 Is there any way to set DBGrid so that the content is set editible only when Dataset is set to  dsEdit mode via TDBNavigator, not directly by pressing F2 on the DBGrid? ---------------------------------------------------------------------- dsiders · 2024-12-14 04:45 Quote from: egsuh on December 14, 2024, 04:00:33 amIs there any way to set DBGrid so that the content is set editible only when Dataset is set to  dsEdit mode via TDBNavigator, not directly by pressing F2 on the DBGrid? You might be able to use OnSelectEditor and set its Editor argument to Nil if the Dataset state is not dsEdit. ---------------------------------------------------------------------- silvercoder70 · 2024-12-14 11:43 if you don't want to the user pressing F2... doesn't that make the app a little less friendly for users that prefer not to use a  mouse? But ... if it were something permission related, then could you not try something with the dataset OnStateChange?