cxgrid 可以加载所有列 CreateAllItems
那如果删除所有列的话应该为那个方法
好像没DeleteAllItems这个方法的,

解决方案 »

  1.   

    沙發  
    這個問題幫頂
    如果是動態的  adoquery.active:=false  就可以搞定
      

  2.   

              cxgrddtvLookupPlan.ClearItems;
              cxgrddtvLookupPlan.DataController.CreateAllItems;
    哎!人太笨了,时间一长没用,就不记得了。
      

  3.   

    呵呵
    实在不行就自己删呗
    var
      I: Integer;
    begin
      cxGrid1DBTableView1.BeginUpdate;
      try
        for I := cxGrid1DBTableView1.ColumnCount - 1 downto 0 do cxGrid1DBTableView1.Columns[I].Free;
      finally
        cxGrid1DBTableView1.EndUpdate;
      end;
    end;