sort data
hi guys.
i want to sort data as DESC, my code is :
report1.Load("C:\\test.frx");
(report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]"));
now, how to sort data on descending???
help me
i want to sort data as DESC, my code is :
report1.Load("C:\\test.frx");
(report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]"));
now, how to sort data on descending???
help me
Comments
new sort("what", order) // order => false = asc, true = desc
(report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]", true));
or
SortCollection sortedSource = new SortCollection();
Sort s = new Sort("Data1.Product.Cost", true);
// you can add more sort definitions
sortedSource.Add(s);
than use sortedSource as datasource