Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RDLC Not Recognizing Data Table Default Sort

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
How do I get an RDLC to recognize that I have set the ReportTable.DefaultView.Sort on the the table I am passing to the RDLC? I worked around it by using
Code:
Dim dt As DataTable = ReportTable.DefaultView.ToTable
and passing the dt to the RDLC.

Auguy
Sylvania/Toledo Ohio
 
DefaultView.Sort does just that: it sorts a table's DefaultView according to the criteria supplied. It does not sort the table, just the DefaultView of that table.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Thanks, I was hoping it would respect the default view when passed to the RDLC. I will continue with the code I have now.

Auguy
Sylvania/Toledo Ohio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top