Thanks for the reply. The stored procedure I have written is:
ALTER PROCEDURE PortfolioListSelect
AS
BEGIN
SELECT
ID AS ItemId,
UserID,
UserName,
Email,
Homepage,
Image1,
Image1Link,
Image1Detail,
Image2,
Image2Link,
Image2Detail,
Image3,
Image3Link,
Image3Detail,
Image4,
Image4Link,
Image4Detail,
Image5,
Image5Link,
Image5Detail,
Image6,
Image6Link,
Image6Detail,
Image7,
Image7Link,
Image7Detail,
Image8,
Image8Link,
Image8Detail,
Image9,
Image9Link,
Image9Detail,
Image10,
Image10Link,
Image10Detail,
UserSkills,
UserPosRatings,
UserNegRatings
FROM [Portfolio]
END
How would I modify this procedure so I can order the data by a selected column in the gridview and what other code would I need to include?
Thanks,
Phil
|