473,405 Members | 2,334 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,405 software developers and data experts.

Sort Direction in ObjectDataSource?

ASF
Hey all,
In objectdatasource there is a property called sortExpression which is
used in many "custom sorting" applications. My question: is there a
sortDirection property? I can't seem to find a reference to one, but
otherwise, how does a gridview (for instance) know which direction to
sort by when default sorting is used?

Any links or comments are appreciated. Thanks
Mar 4 '08 #1
2 3198
Hello ASF,

GridView has the SortDirection property for that
Look at that article where it describes in details http://aspnet.4guysfromrolla.com/articles/012308-1.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
AHey all,
AIn objectdatasource there is a property called sortExpression which
Ais
Aused in many "custom sorting" applications. My question: is there a
AsortDirection property? I can't seem to find a reference to one, but
Aotherwise, how does a gridview (for instance) know which direction to
Asort by when default sorting is used?
AAny links or comments are appreciated. Thanks
A>
Mar 4 '08 #2
ASF
Thanks for the response Michael. I read the article and it's update
version and I just want to ensure I'm totally clear on something. Am I
right in believing that the objectdatasource has properties to support
one-way sorting but NOT bi-directional sorting? I.E., there is no
sortdirection in objectdatasource?

On Mar 4, 6:01*pm, Michael Nemtsev [MVP] <nemt...@msn.comwrote:
Hello ASF,

GridView has the SortDirection property for that
Look at that article where it describes in detailshttp://aspnet.4guysfromrolla.com/articles/012308-1.aspx

---
WBR,
Michael *Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

AHey all,
AIn objectdatasource there is a property called sortExpression which
Ais
Aused in many "custom sorting" applications. My question: is there a
AsortDirection property? I can't seem to find a reference to one, but
Aotherwise, how does a gridview (for instance) know which direction to
Asort by when default sorting is used?
AAny links or comments are appreciated. Thanks
A>
Mar 5 '08 #3

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

Similar topics

12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
3
by: avezina | last post by:
We would like to use those new cool features of Asp.Net 2.0 like the ObjectDataSource in our project. I tried few basics examples and its work well. Let's say I have a page that displays a...
2
by: J055 | last post by:
Hi I've implemented caching for my ObjectDataSource. <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnableCaching="True" CacheDuration="10" CacheExpirationPolicy="Sliding" ...
1
by: ad | last post by:
I use a GridView to display data , the datasource of my GridView is from a ObjectDataSource. How can I specify the sort column?
0
by: Northern | last post by:
Hello, I have some trouble to declare and instantiate dynamically an ObjectDataSource in the codebehind file. The idea is to bind the objectdatasource to a gridview and have automate sorting and...
2
by: tee | last post by:
Hi, How do i sort datagridview programmically, current i have the following code but i keep get the error saying "DataGridView control must be bound to an IBindingList object to be sorted.", ...
0
by: GMartin | last post by:
I have a pop-up form with a three columned Grid that has checkboxes in a Template Column in the first/left-most column. (The form is to allow users to select "Members" of a group, where they check...
0
by: DBLWizard | last post by:
I posted a message on the topic earlier and thought I had it solved but in testing have found problems. I have a Templated GridView control on a webpage bound to an ObjectDataSource. There are 3...
3
by: Peter | last post by:
I have a GridView which is populated by List<ofObjects> Does anyone have example of how to sort the columns of this GridView? I have found examples without DataSourceControl but these use...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.