Hello, you may use the next code in the OnBeforeInsert event handler for your table/query:
if yourDBGrid.Focused then Sysutils.Abort; With best regards, Mike Shkolnik EMail: [email protected] http://www.scalabium.com --- On Sun, 8/15/10, haroutbulbulian2000 <[email protected]> wrote: > From: haroutbulbulian2000 <[email protected]> > Subject: [delphi-en] How can i disable insert record in TDBGrid control > To: [email protected] > Date: Sunday, August 15, 2010, 8:17 PM > i use TDBGrid in my application. i > tried to use ReadOnly method to disable insertion, but the > method is not efficient. > > Any ideas how to disable Insert record in TDBGrid control

