finance_teacher
asked on
C# --> Microsoft Report Viewer -- "SORT" order ?
How can I get the below Microsoft Report Viewer to display the same "SORT" order as the user selected ?
1. user runs Form1.cs
2. below code runs
**this.gML_ROITEMTableAdap ter.FillBy _History(t his.dataSe t1.GML_ROI TEM,...)
3. user clicks on a CELL header (Description, StockNum, Date, or something else)
**example = user clicks "QtyRcvd" to sort in descending order (attached 1.jpg)
4. user clicks PRINT
5. attached unordered results display, without "QtyRcvd" sorted in descending order (attached 2.jpg)
** two .cs files attached
0001.jpg
0002.jpg
form.txt
print.txt
1. user runs Form1.cs
2. below code runs
**this.gML_ROITEMTableAdap
3. user clicks on a CELL header (Description, StockNum, Date, or something else)
**example = user clicks "QtyRcvd" to sort in descending order (attached 1.jpg)
4. user clicks PRINT
5. attached unordered results display, without "QtyRcvd" sorted in descending order (attached 2.jpg)
** two .cs files attached
0001.jpg
0002.jpg
form.txt
print.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
to work since this.reportViewer1.Sort() = "ROM_ID"; also failed ?
--------------------------
public RO_MatReq_History_Print(Da
{
InitializeComponent();
this.GML_ROITEMTableAdapte
//this.GML_ROITEMBindingSo
this.reportViewer1.Refresh
this.reportViewer1.Sort("R
}