Sort Direction in ObjectDataSource?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ASF

    Sort Direction in ObjectDataSource?

    Hey all,
    In objectdatasourc e 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
  • Michael Nemtsev [MVP]

    #2
    Re: Sort Direction in ObjectDataSourc e?

    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 objectdatasourc e 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>


    Comment

    • ASF

      #3
      Re: Sort Direction in ObjectDataSourc e?

      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 objectdatasourc e has properties to support
      one-way sorting but NOT bi-directional sorting? I.E., there is no
      sortdirection in objectdatasourc e?



      On Mar 4, 6:01 pm, Michael Nemtsev [MVP] <nemt...@msn.co mwrote:
      Hello ASF,
      >
      GridView has the SortDirection property for that
      Look at that article where it describes in detailshttp://aspnet.4guysfro mrolla.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 objectdatasourc e 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>

      Comment

      Working...