procedure TForm1.FormCreate(Sender: TObject);
begin
stringgrid1.Columns.Add;
stringgrid1.Columns.Add;
stringgrid1.Columns[0].ButtonStyle:=cbspicklist;
stringgrid1.Options:=stringgrid1.Options+[goediting];
end;
procedure TForm1.StringGrid1SelectCell(Sender: TObject; aCol, aRow: Integer;
var CanSelect: Boolean);
begin
if (aCol=1) and (aRow<>3) then CanSelect := true;
end;
procedure TForm1.StringGrid1SelectEditor(Sender: TObject; aCol, aRow: Integer;
var Editor: TWinControl);
begin
// if (aCol=1) and (aRow<>3) then begin Editor := nil; // How about this line ?
//end;
//procedure TForm1.gridSelectEditor(Sender: TObject; aCol, aRow: Integer;
// var Editor: TWinControl);
//begin
if (aCol=1) and (aRow<>3) then begin
if (Editor is TCustomComboBox) then // Error: Identifier not found 'TCustomComboBox'