edComboEdit and EditMask

Hello,

Can a column with edComboEdit as inplace work in conjunction with editmask ?

I tried the following combination but I can still insert letters in the column 1


procedure TForm1.AdvStringGrid1GetEditMask(Sender:TObject;ACol,ARow:Integer;var Value:String);
begin
  if (ACol=1)then
  Value:='#999999';
end;


procedure TForm1.gridGetEditorType(Sender:TObject;ACol,ARow:Integer;var AEditor:TEditorType);
begin
case ACol of
  1:AEditor:=edComboEdit;
end;
....

How can I limit the input to numeric digits only in a grid with edComboEdit as implace ?


Many thanks
Alberto

Sorry, an editable combobox currently does not support an edit mask (just like the standard VCL TComboBox)

Hi Bruno,

Is there an alternative way to manage both features in the same cell ?

Many thanks
Alberto

If you have such combobox control that offers a mask, you can use techniques as explained in samples 24 or 55 to use that control as inplace editor in the grid.