Delphi Pages Forums  

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

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
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
  #2  
Old 01-31-2007, 11:21 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,329
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 127.0.0.1
Reply With Quote
  #3  
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
  #4  
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);
begin
// do something else
end;[/DELPHI]

jdg.ho

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

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 04:23 AM.


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