-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: saileshsaha
Message 2 in Discussion
Hi!
In order to sort the values contained in a
list box, the best way is to sort the datasource and then bind it to the list
box again.
Suppose for example you create a list box in
the following way:
ArrayList values = new
ArrayList();
values.Add ("Item
1");
values.Add ("Item
2");
values.Add ("Item
3");
values.Add ("Item
4");
values.Add ("Item
5");
values.Add ("Item 6");
ListBox1.DataSource =
values;
ListBox1.DataBind();
Now if you want the contents to be sorted,
you can sort the arraylist(datasource of this list) and assign it back to the
listbox.
Hope this helps.
Thanks and Regards,
Sailesh
-----Original Message-----
From: BDOTNET
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003
8:58 AM
To: BDOTNET
Subject: List Box -
Sort
New Message on BDOTNET
List Box
- Sort
Reply
Recommend
Message 1 in
Discussion
From: hi4masrpreethi
<LABEL id=HbSession
SessionId="1588835185"></LABEL>
hi,
how can we do sorting in list box ?
bye,
Preethi
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]