在 devexpress 12.1.6 中
var
  tempColumn:TcxGridColumn;
begin
  tempColumn:=TcxGridColumn(FLinkTableView.Controller.FocusedColumn);
  if Assigned(tempColumn) then
  begin
    tempColumn.SortOrder:=cxCustomData.soDescending;
  end;
end;没有问题但在 12.2.6中,就有错误了
cxCustomData.soAscending;没有 soAscending属性
高人  能指导一下不?
怎样修改,谢谢

解决方案 »

  1.   

    有变化   由 cxCustomData  转到了  dxCore中然后 我再问一个问题程序编译这句出错:FLinkTableView.Styles.OnGetContentStyle:=NewStylesGetContentStyle; [Pascal Error] ABcxGridPopupMenuU.pas(2302): E2009 Incompatible types: 'Parameter lists differ'从错误来看,应该是参数不一致,但是比较2个定义,也没有发现不对啊
    procedure TABcxGridPopupMenu.NewStylesGetContentStyle(
      Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord;
      AItem: TcxCustomGridTableItem; out AStyle: TcxStyle);
    var
    。onGetContentStyle Event
     declared in
      cxGridCustomTbleView.TcxCustomGridTableViewStyles
    Parameters
      Sender
        cxGridCustomTableView.TcxCustomGridTableView
      Arecord
        cxGridCustomTableView.TcxCustomGridRecord
      AItem
        cxGridCustomTableView.TcxCustomGridTbleItem
      Astyle
        cxStyles.TcxStyle
    高手帮忙看看,如何修改