Ver Mensaje Individual
  #18  
Antiguo 11-11-2008
Avatar de Rodrigo_I
Rodrigo_I Rodrigo_I is offline
Miembro
 
Registrado: oct 2007
Ubicación: Santiago,Chile
Posts: 15
Reputación: 0
Rodrigo_I Va por buen camino
En el evento CellClick de tu grilla colocas algo asi
Código Delphi [-]
  if (Column.FieldName = 'Campo') then
      DBGrid1.Options :=    [dgTitles,dgIndicator,dgColLines,dgRowLines,dgTabs,dgEditing]
  else
      DBGrid1.Options := [dgTitles,dgIndicator,dgColLines,dgRowLines,dgTabs];

y en evento KeyPress

Código Delphi [-]
if Key = #13 then
  if DBGrid1.DataSource.State  in [dsEdit, dsInsert] then
    "accion deseada"

espero te ilumine en algo
Responder Con Cita