Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#如何更改快速报告中的排序顺序_C#_Report_Reporting_Fastreport - Fatal编程技术网

C#如何更改快速报告中的排序顺序

C#如何更改快速报告中的排序顺序,c#,report,reporting,fastreport,C#,Report,Reporting,Fastreport,他正在工作 如何在C#?中更改排序顺序升序或降序?请尝试以下大小: report1.Load("C:\\test.frx"); (report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]")); 这可以是动态的吗?列的名称。。。 new Sort(String column, Boolean descending) new Sort("[Product.Cost]", true) // For des

他正在工作

如何在C#?中更改排序顺序
升序
降序

请尝试以下大小:

report1.Load("C:\\test.frx");
(report1.FindObject("Data1") as DataBand).Sort.Add(new Sort("[Product.Cost]")); 

这可以是动态的吗?列的名称。。。
new Sort(String column, Boolean descending)
new Sort("[Product.Cost]", true) // For descending
new Sort("[Product.Cost]", false) // For ascending