Hi

Hi
Any One Tell me how can i add Drobdown combo box in to only Col 1 in TMS Stringgrid (AdvStringGrid1) there option to enable as edComboEdit, but that will give combo box for all Cells, any one can tell me how to solve the issue ?

Comments

  1. can you give me example code please

    ReplyDelete
  2. I assumed that you by Col 1, meant the first column - which will be column 0 in TMSGrids.
    Connect this proc to AdvStringGrid1.OnGetEditorType.

    procedure TMyForm.sgLogGetEditorType(Sender: TObject; ACol, ARow: Integer; var AEditor: TEditorType);
    begin
    if ACol = 0
    then AEditor := TEditorType.edComboEdit
    else AEditor := TEditorType.edNone; // or TEditorType.edNormal;
    end;

    ReplyDelete

Post a Comment