Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Alan Z. Scharf #1
Sort on Date Column
1. I have sorts on Date and Name column heads
Initial sort is on ORDER BY Date DESC
Date Name
------------------------------
10/05/2004 Charlie
09/30/2004 Baker
10/10/2003 Able
2. After then sorting on Name column, and then sorting on Date column, sort
now appears to be literally on date text:, sorting by month and day.
Apparently on text of date column in grid.
Date Name
------------------------------
10/10/2003 Able
10/05/2004 Charlie
09/30/2004 Baker
5. Data is initially bound to grid in !IsPostBack with my
BindDataGrid(string sortColumn) function. Works fine.
6. Sort EventHandler has one line of code using same BindDataGrid function:
BindDataGrid(e.SortExpression)
How can I get it to sort on actual Date DESC? Shouldn't the postback be
pulling an actual Date sort back from the SQLServer?
Thanks.
Alan
Alan Z. Scharf Guest
-
DataGrid 2 Column Sort
Hey gang. I know the DataGrid can use the sort methods to do sorting but is there any way to sort by 2 columns? The first column may be user... -
Sort DataGrid Column
I have a DataGrid with two columns: Name and Topic. I'm trying to sort each column alphabetically. The first columns, Name, works and sorts... -
Sort by Date (Latest Date that is)
:confused; Hello I have an access db which has text feilds and has a date feild set to the default value of Now() I want to be able to filter a... -
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB.
Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. hi, guys i have asp... -
How do you sort a 2D array with column headers?
I have a numerical array consisting of 5000 rows and 30 columns. The first row consists of 30 ascii column labels for example L1,L2.....L30. I... -
Alan Z. Scharf #2
Re: Sort on Date Column - NEVER MIND
I needed to add "DESC" to e.SortExpression
Thanks.
Alan
Alan Z. Scharf Guest



Reply With Quote

