473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sorting a Datalist in ASP.net 2.0

I'm using VWD2.0 and VB

I'm working with a Datalist (which doesn't have built-in sorting like
the Gridview) and I would like to sort the datalist via dropdown list.
In the SelectedIndexChanged event I placed:

Dim dsa As New DataSourceSelectArguments
dsa.SortExpression = dropdownlist.selectedvalue (which is
"ClientName")
SqlDataSource1.Select(dsa)
DataList1.DataBind()

This does not work. There are plenty of examples on the web which
illustrate sorting on a datalist using asp.net 1.0 but not 2.0.

Can someone steer me in the right direction in VB and 2.0?

Jan 9 '06 #1
0 1813

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: LRW | last post by:
Is it possible? Here's the opening block of my datalist in the ASPX page, and I was wondering if there's a way to sort the output by a particular field: <asp:datalist ID="dgProducts"...
0
by: Eph0nk | last post by:
Hi, I have two small questions concerning databounding an xml file to a datalist. 1. Can i do (ascending/descending) sorting on a certain field? 2. Is it possible to show onliy the first 5...
0
by: Paul Turley | last post by:
I have a DataList control bound to a DataSet containing two tables. How do I sort the parent table without losing my relation? If I bind the DataList to a DataView, it's no longer relational...
1
by: Haydn Williams | last post by:
Hi, I have a load of records in a datalist, where RepeatColumns=3. The records are sorted by a particular field, and the sort order runs down the first column, then jumps to the top of the second...
2
by: Dufus | last post by:
Hi, I am working with a DataList and am binding objects to it. I normally use IList or other collections that implement the IEnumerable interface. I have a datalist that I need to be able to...
3
by: Brian Barnes | last post by:
Hi, I know this has been done quite often before, but all my research and trials have not worked. Basically I am trying to display a sorted list of e-mail Addresses in a datalist control (using...
0
by: LisaBigJax | last post by:
I'm using VWD2.0 and VB.net I'm working with a Datalist (which doesn't have built-in sorting like the Gridview) and I would like to sort the datalist via dropdown list. In the...
3
by: Mirek Endys | last post by:
I have DataList as part of DataList item. DataList in DataList. The parent DataList working well including Edit command, that shows Edit template and correctly bind the data into edit template...
0
by: Maran | last post by:
We have come across a situation that I thinks not many have. Grateful for all responses. Regards Maran ************* * Scenario A DataList binds to a DataRow, with "RegionName" och...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.