Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

fill listview calling a Stored Procedure with ORDER BY not working

$
0
0

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 isn't 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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>