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
Anybody ever experienced this before when sorting datatables?
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")