Delphi/꿀팁
[TcxGrid] TextEdit 컬럼에 CustomEvent 만들기
컬럼의 Propterties 속성에 맞춰 다양하게 사용할 수 있습니다. procedure TForm1.edtKeyPress(Sender: TObject; var Key: Char); begin if not (Key in ['0'..'9', #8]) then Key := #0; end; procedure TForm1.cxGridTableViewInitEdit(Sender: TcxCustomGridTableView; AItem: TcxCustomGridTableItem; AEdit: TcxCustomEdit); begin //할당할 이벤트 TcxTextEdit(AEdit).OnKeyPress := edtKeyPress; end;