detecting sort order

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm not working with anything web-related, all that I have is a datagrid, a
dataset, and a datatable. I programatically sort whichever column when I
need to. Now I'd like to be able to detect the order in which a column is
sorted. I've been looking into ViewState, but I'm not having much luck with
it. Should I keep trying, or is there some other way to detect sort order
(by dataview, maybe)?
Thanks!
Mel
 
why ViewState doesnt work? something like ViewState["SortColumn"] =
"DateCreated" ViewState["SortDirection"] = "ASC" should work. you can get
value like (string)ViewState["SortColumn"] ...

does anything web-releated means there is no postbacks and/or stateless
situations? or there is not a specific web control involved?
 
Back
Top