fill listview calling a Stored Procedure with ORDER BY not working

  • Thread starter Thread starter candide
  • Start date Start date
C

candide

Guest
Hi,

in C# I called a SP per SqlCommand and SqlDataReader so far and it worked. Now I added an ORDER BY clause to the SP, but the listview isnt sorted. I know this can happen using a view, but for SPs?

I know there is a way to sort the listview columns per click on the header, but in my case this is not necessary and:

when loading the form with the listview it has to be sorted correct with no user interaction.

Any tips? (VS2008, SS2012)


-- candide

Continue reading...
 
Back
Top