Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Thread Tools Display Modes
Old 01-31-2007, 02:50 PM
Nate1 Nate1 is offline
Senior Member
Join Date: Apr 2006
Posts: 284
Default DBGRID

I Have a DBGRID setup but when you double click it allows the user to edit the record, how do I override this to do something else?
Reply With Quote
Old 01-31-2007, 11:21 PM
Norrit Norrit is offline
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,333
Default RE: DBGRID

Remove dgEditing from the TDBGrid.Options...

Objective reality is a delirium caused by lack of alcohol in blood.
There is no place like
Reply With Quote
Old 02-01-2007, 02:42 AM
daltamira daltamira is offline
Senior Member
Join Date: Aug 2006
Location: Argentina
Posts: 959
Default RE: DBGRID

or set the ReadOnly property to True...

DBGrid.ReadOnly := True;
Reply With Quote
Old 02-03-2007, 03:44 AM
jdg jdg is offline
Senior Member
Join Date: Sep 2003
Posts: 1,063
Default RE: DBGRID

Perhaps you could use the grid's double click event handler:

[DELPHI]procedure TForm1.DBGrid1DblClick(Sender: TObject);
// do something else


I love this forum. Your generosity is wonderful.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.