Is it a easy way to bind TTMSFMXGrid.CellComboBox

Hi, I am wondering if an easy way to available to bind TTMSFMXGridand .CellComboBox item.text to a datatable. You can bind TCombobox->Item.Text directly to a datatable field. It seems some coding is needed to bind Grid.CellComboBox. Can this be done in livebinding designer?
Thanks!

Hi,



A sample of binding to the CellComboBox is demonstrated in the LiveBindings Lookup demo,

available in de distribution.

Sorry for previous post. I click "Post" button by mistake!
I have a ttmsfmxgrid and I use this code to populate the EditComboBox. items.
SG->CellComboBox->Items->Add("text");
This editcombobox population is done at form activation event. The column I set to edComboBox. When I click on cells in that column, I don't see any populated combobox items. What did I do things wrong?

Hi, 


When working with columns you can either use

  TMSFMXGrid1.Columns[1].Editor := etComboBox;
  TMSFMXGrid1.Columns[1].ComboItems.Add('Test')

or

  TMSFMXGrid1.UseColumns := False;
  TMSFMXGrid1.CellComboBox.Items.Add('Test');

procedure TForm1.TMSFMXGrid1GetCellEditorType(Sender: TObject; ACol,
  ARow: Integer; var CellEditorType: TTMSFMXGridEditorType);
begin
  CellEditorType := etComboBox;
end;