Sri Lanka .NET Forum
a mission and a vision with .NET

VS 2008 - How to sort data in listview

Get Microsoft Silverlight

rated by 0 users
This post has 5 Replies | 2 Followers

Top 500 Contributor
Newbie
Points 430
SNJW Posted: 01-31-2010 2:28 PM

Hi,

I'm new to here and vs2008. can anyone please help me with the code for sorting data in listview?

IF {never tried = never known} END IF

Top 25 Contributor
Forum Regular
Points 6,120

hi

this is a step by step guide to it , 

I will also post a code ASP. till try this

http://support.microsoft.com/kb/319401/EN-US

Melick UCSC

BICT,MCP,MCTS,BIT

http://melick-rajee.blogspot.com

  • | Post Points: 30
Top 500 Contributor
Newbie
Points 430

Thank you for the reply. Yes I've already seen this and I want to do this by visual basic, not by the c#.  I set the listview sort order property to Ascending but it didn't work for me. 

in my program I have 8 columns - RedID, Customer Name, Address, Date, Amount, Date,...etc.. 

I want to sort all data by the date.

any would be appreciated..

 

Thank You...

IF {never tried = never known} END IF

  • | Post Points: 30
Top 150 Contributor
Cool Newbie
Points 1,166

if U want to sort it for one time U can do it when u query it.

like select RedID, Customer Name, Address, Date, Amount, Date from <table name> order by Date Desc

Krishantha Dinesh
Senior Systems Engineer
EW-Information systems (EWIS)

  • | Post Points: 30
Top 500 Contributor
Newbie
Points 430

Thank you Krishantha. I'll try that and will let you know.

IF {never tried = never known} END IF

  • | Post Points: 10
Page 1 of 1 (6 items) | RSS
This space is available for you to advertise. Please contact admin@dotnetforum.lk for more details on how to advertise on the .NET Forum.
Copyright © Sri Lanka .NET Forum. All Rights Reserved. Terms of Use | Privacy Policy