RE: ASP DataGrid Sorting
From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 07/22/04
- Next message: Kevin Yu [MSFT]: "RE: Repost Can't populate 2nd listbox from selected value of firs"
- Previous message: Urs Eichmann: "Re: Dataadapter.Update fails intermittendly when updating large database"
- In reply to: Mark Travis: "ASP DataGrid Sorting"
- Next in thread: Mark Travis: "Re: ASP DataGrid Sorting"
- Reply: Mark Travis: "Re: ASP DataGrid Sorting"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Jul 2004 10:47:53 GMT
Hi Mark,
As for the sorting problem you mentioned, I don't think the problem is on
the DataAdapter or Stored procedure. I've also done test on my side.
Retrieving datas from sqlserver via StoreProcedure and the DataAdapter
generated via thte Wizard in VS.NET. And bing onto a webform datagrid with
sorting, it works well. I think we can check the following things first:
1. What's the SortExpression you set for the columns in the DataGrid? The
expression should noramally be the columns name in the datatable. If
they're not idential, the sorting won't take place.
2. What's the columns's datatype you're sorting on? Some particular column
type such as binary data dosn't support simple sorting. If the column's
data type is normal string or numeric type, I think it should work.
Please have a further check and feel free to post here if you have any
other findings. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
- Next message: Kevin Yu [MSFT]: "RE: Repost Can't populate 2nd listbox from selected value of firs"
- Previous message: Urs Eichmann: "Re: Dataadapter.Update fails intermittendly when updating large database"
- In reply to: Mark Travis: "ASP DataGrid Sorting"
- Next in thread: Mark Travis: "Re: ASP DataGrid Sorting"
- Reply: Mark Travis: "Re: ASP DataGrid Sorting"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|