1. 程式人生 > >如何訪問cxGrid控制元件過濾後的資料集

如何訪問cxGrid控制元件過濾後的資料集

var
 I: Integer;
begin
 Memo1.Lines.Clear;
 with cxGrid1DBTableView1.DataController do
   for I := 0 to FilteredRecordCount - 1 do
     Memo1.Lines.Add(DisplayTexts[FilteredRecordIndex[I], 0]);
end;

  https://www.devexpress.com/Support/Center/Question/Details/A385/how-to-iterate-through-all-gridview-records-in-their-display-order-irrespective-of-group