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

ViewState to detect sort order?

Hi,
I have a datatable in a datagrid and am trying to see if a column is sorted
in ascending or descending order. I've been messing around with dataview,
but haven't been able to find a way yet. Is there anything like viewstate
that I can use? If not, what's the best way to go about this?
Thanks!
Mel
Nov 17 '05 #1
1 1402
For sure you can use viewstate. For those kind of problems, it is the best
(I think).
Just put active sort order in one viewstate variable and column name that
the sort is made on into another viewstate variable.

--

SevDer
http://www.sevder.com
A new .NET Source For .NET Developers
"melanieab" <me*******@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
Hi,
I have a datatable in a datagrid and am trying to see if a column is
sorted
in ascending or descending order. I've been messing around with dataview,
but haven't been able to find a way yet. Is there anything like viewstate
that I can use? If not, what's the best way to go about this?
Thanks!
Mel

Nov 17 '05 #2

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

Similar topics

0
by: Martin Clark | last post by:
Hi, I have a C# Windows .net application (not asp.net) which uses a datagrid to display information. The datagrid is populated from a DataView, in which I specify a sort order ("ORDER BY...
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
2
by: J. Johnson | last post by:
Is it possible use viewstate to detect if a form's data has changed? I want to prevent duplicate submission of data. Example: On_click event of Submit button: 1. Save viewstate to session....
1
by: Lisa | last post by:
I have a web app that gets a recordset from the database and fills a grid. You can drilldown from this table to a detail table. Because the tables sometimes get huge, and because I have to go...
1
by: Simon | last post by:
Hi everyone, I have a quick question that I hope someone can help me with: I've made a user control that contains a text box and some validation functionality. This control has a few extra...
3
by: vMike | last post by:
I have a Datalist which contains linkbuttons. In order to get the information about the clicked linkbutton I have been enabling the viewstate. I have noticed that the size of the viewstate for...
6
by: hitendra15 | last post by:
Hi I have created web user control which has Repeater control and Linkbutton in ItemTemplate of repeater control, following is the code for this control On first load it runs fine but when...
5
by: Frank | last post by:
I'm really stumped here. I have a couple pages where I'm using a datagrid and a custom paging solution. I store the current page, sort column, etc in the ViewState of the page. When a column is...
2
by: Nemisis | last post by:
Hi everyone, I have 2 pages, PageA and PageB. On PageA i allow our users to update a details of a record using textboxes, dropdownlists etc. When a user clicks on a button on PageA, i would...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.