QQ dia moderam-me os posts por pedir tanta ajuda...

Any

Power Member
Ppl tou com um pekeno ( num e nada pekeno e so para n se assustarem ) problema...


tenho no delphi uma grid, e keria fazer o seguinte, numa das celulas o user coloca o codigo e ela deveria automaticamente actualizar os outros campos... alguem sabe como se faz destas coisas????


Tnks in advance...
 
Eu não sei como é que é em Delphi, mas em VB há um evento chamado LostFocus que parece-me o mais apropriado a usar nessa célula.
Há um equivalente em Delphi a isto, AV?
 
Acho que é isto.
Nunca usei Grids nos meus programas.

VCL Reference
TCustomGrid.FocusCell

TCustomGrid See also

Changes the current cell to a specified cell.

procedure FocusCell(ACol, ARow: Longint; MoveAnchor: Boolean);

Description

TCustomGrid calls FocusCell internally to change the currently selected cell. FocusCell changes the current cell and updates the selection appropriately.

ACol is the column of the cell to select.

ARow is the row of the cell to select.

MoveAnchor determines how the selection changes. If the grid does not allow multiple cells to be selected (Options does not include goRangeSelect), MoveAnchor is ignored and the specified cell becomes the selected cell. If the grid allows multiple cells to be selected, MoveAnchor determines whether the new cell becomes the starting cell (anchor) of a new selection, or whether the current selection is updated to range from the current anchor to the specified cell.
 
Back
Topo