1、显示多列时,如何取后几列的值?
2、如何让cxDBLookupComboBox与listsource所关联的Table或者Query同步?
也就是说:当cxDBLookupComboBox所选择的行改变时,listsource所关联的Table或者Query的记录指针所对应的行也跟着改变?

解决方案 »

  1.   

    DevExpress cxGrid cxGridDBTableView的Properties为
    LookupComboBox时ListSource与关联的数据集没有同步.
    但是你可以看看DexExpress的网站的KB.
    https://www.devexpress.com/Support/Center/ViewKBIssue.aspx?kbid=A506
    How to Force my Lookup Editor to Synchronize the Active Record of the Underlying Lookup DataSet with its Lookup Selected Row Article ID: A315 ; Product Group: VCL ; Product: ExpressEditors Library ; Modified On: 17 Apr 2006 DescriptionHow to Force my Lookup Editor to Synchronize the Active Record of the Underlying Lookup DataSet with its Lookup Selected RowSolutionBy default, the lookup Grid does not synchronize its selected row with the underlying data source, thus the active row stays unchanged. It is made for better performance.
    If necessary, you can change this behavior and force the lookup Grid to synchronize its content. To do this, simply activate the SyncMode option of the lookup Grid's data controller.[Delphi]
    //Delphi
    cxLookupComboBox.Properties.Grid.DataController.DataModeController.SyncMode := True;
      

  2.   

    2005-1-4 16:34:35    取得TcxLookupComboBox下拉列表中各项的内容Properties.DataController.Values包含了所有内容,如果要取得当前选择行的内容,用以下代码
    //cmb:TcxLookupComboBox;
      with cmb.Properties.DataController do
        ShowMessage(Values[FindRecordIndexByKey(cmb.EditValue),0]);
    //0代表显示的第一列,以Properties.ListColumns为准,可以从这个集合中查找对应的字段名 
      

  3.   

    editvalue其实就是可以啊!!!