D
Dan
I am reposting a question from about 3 weeks ago ("sorting capability").
I have an aspx page in which I get the data from a database dynamically,
through C# code, by creating a dynamic table using TableHeaderCell and
TableHeaderRow.
The data is binded to the table by using a DataSet and Data Reader.
The responses on the forum made me think that it would be easier to sort the
data in the table (when clicking on the header column), by adding a hidden
field in the aspx form and getting the clicked sorting column (expression) in
C#, create a sorting clause.
Probably it is a easy question, but I am new to designing with C# and .NET
framework.
Does anybody know what is the .NETmethod or property of the
DataSET,SQLAdapter or Reader which has to be used to get the value from the
hidden field to sort ASC or DESC ?
I know that first I have to create the value:
string sort = this.hiddenfield.value
if (sort=="column_clicked_value")
{
..........??????????
//How to rebind and sort ASC or DESC?
}
Can anybody help me please?
Thank you.
Dan
I have an aspx page in which I get the data from a database dynamically,
through C# code, by creating a dynamic table using TableHeaderCell and
TableHeaderRow.
The data is binded to the table by using a DataSet and Data Reader.
The responses on the forum made me think that it would be easier to sort the
data in the table (when clicking on the header column), by adding a hidden
field in the aspx form and getting the clicked sorting column (expression) in
C#, create a sorting clause.
Probably it is a easy question, but I am new to designing with C# and .NET
framework.
Does anybody know what is the .NETmethod or property of the
DataSET,SQLAdapter or Reader which has to be used to get the value from the
hidden field to sort ASC or DESC ?
I know that first I have to create the value:
string sort = this.hiddenfield.value
if (sort=="column_clicked_value")
{
..........??????????
//How to rebind and sort ASC or DESC?
}
Can anybody help me please?
Thank you.
Dan