Problem with Sorting of DataGrid with Arraylist binding

H

Holysmoke

Hi,

I am using a DataGrid which is binds with an ArrayList (which contains an
object returned from Database code). It binds well but I have a problem when
sorting the datagrid. I see a method Sort in ArrayList but having diffculty
with how-to? Remember I have to sort a particular property of the object

I welcome your help and suggestions,

TIA,
Holy
 
S

Scott Mitchell [MVP]

Holysmoke said:
I am using a DataGrid which is binds with an ArrayList (which contains an
object returned from Database code). It binds well but I have a problem when
sorting the datagrid. I see a method Sort in ArrayList but having diffculty
with how-to? Remember I have to sort a particular property of the object

Holy, check out this article:

Sorting an Array Using Array.Sort()
http://aspnet.4guysfromrolla.com/articles/060403-1.aspx

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top