Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

Strange problem sorting datatable data

$
0
0
Hi,

I'm having a really bizarre problem sorting datatable data.


I have a datatable dtpayment which has several columns and one of them is DEPT15 and has different department names in. there's approximately 6 different department names used over 10000 rows for example.

I'm using the below code because i want to display new table with just dept15 column and distinct names only.

Even though i can see many different names during debug it's only returning 3 rows

Code:

  Dim dtdept As DataTable = dtpayment.DefaultView.ToTable(True, "DEPT15")
Anybody ever experienced this before when sorting datatables?

Viewing all articles
Browse latest Browse all 594

Trending Articles