473,386 Members | 1,924 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,386 software developers and data experts.

sort tables more comfortably

Hello,

I have to sort a table. Ok, that's not realy a problem, but I have to do it
with a HTMLTable
via ASP.NET. The task is to click the header row and get the sorted result.
The table is generated
dynamically with the help of a dataset, a repeater and a dataview. The
problem is, that I have to
make every columnname a linkbutton. For each of these linkbuttons there
exists an event handler,
managing viewstates. These viewstates consist of the columnname. When
reloading the page,
the table will be re-generated (databind with a dataview (sorted)).
Here my question: is there something, I can do to handle the events within
an "event-container",
selecting the viewstate in relation to the linkbutton, which was clicked?
Nov 18 '05 #1
1 909
Could you not make the column a custom column that uses a web user control.
That control would be a link button with all its own event handling wired
in.

MattC
"Thomas Tomow" <le******@alone.de> wrote in message
news:10****************@damia.uk.clara.net...
Hello,

I have to sort a table. Ok, that's not realy a problem, but I have to do it with a HTMLTable
via ASP.NET. The task is to click the header row and get the sorted result. The table is generated
dynamically with the help of a dataset, a repeater and a dataview. The
problem is, that I have to
make every columnname a linkbutton. For each of these linkbuttons there
exists an event handler,
managing viewstates. These viewstates consist of the columnname. When
reloading the page,
the table will be re-generated (databind with a dataview (sorted)).
Here my question: is there something, I can do to handle the events within
an "event-container",
selecting the viewstate in relation to the linkbutton, which was clicked?

Nov 18 '05 #2

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

Similar topics

5
by: Bill Reid | last post by:
Hello, I am a just-beyond-beginning user of Access 97 on a Windows 98se machine (a single, non-networked home machine). All of a sudden I am unable to sort any of my tables. I click on any...
7
by: DC Gringo | last post by:
I have a datagrid that won't sort. The event handler is firing and return label text, just not the sort. Here's my Sub Page_Load and Sub DataGrid1_SortCommand: -------------------- Private...
2
by: shuckjunkmail | last post by:
It was suggested that I re-submit this question as a new post rather than adding onto an old and unanswered post. The basic problem has to do with the .NET datagrid and sorting. I am having...
3
by: Peter Proost | last post by:
Hi group, I've got this, a dataset which contains ds.tables(0).rows(0).item(0) = "HO" ds.tables(0).rows(1).item(0) = "L1" ds.tables(0).rows(2).item(0) = "L2" ds.tables(0).rows(3).item(0) =...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: 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,...
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...

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.