Click here to Skip to main content
15,916,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combo Box Pin
sreejith ss nair19-May-04 16:52
sreejith ss nair19-May-04 16:52 
GeneralRe: Combo Box Pin
Heath Stewart19-May-04 18:33
protectorHeath Stewart19-May-04 18:33 
GeneralRe: Combo Box Pin
sreejith ss nair19-May-04 19:03
sreejith ss nair19-May-04 19:03 
GeneralRe: Combo Box Pin
Heath Stewart19-May-04 19:08
protectorHeath Stewart19-May-04 19:08 
GeneralSorting with Xsl Pin
bertcox19-May-04 3:16
bertcox19-May-04 3:16 
GeneralRe: Sorting with Xsl Pin
Heath Stewart19-May-04 3:39
protectorHeath Stewart19-May-04 3:39 
GeneralRe: Sorting with Xsl Pin
bertcox19-May-04 3:56
bertcox19-May-04 3:56 
GeneralRe: Sorting with Xsl Pin
Heath Stewart19-May-04 4:04
protectorHeath Stewart19-May-04 4:04 
Have you actually stepped through your code to make sure that the DataTable contains the sorted data? A DataGrid can apply a default sort based on the DataTable's DefaultView. This why you're supposed to use a DataView on your DataTable and bind against that like so:
DataView view = new DataView(dataTable1);
view.Sort = "MyColumn DESC";
dataGrid1.DataSource = view;
See the DataView.Sort property documentation in the .NET Framework SDK for more information.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Sorting with Xsl Pin
bertcox19-May-04 4:16
bertcox19-May-04 4:16 
GeneralRe: Sorting with Xsl Pin
Heath Stewart19-May-04 5:02
protectorHeath Stewart19-May-04 5:02 
GeneralRe: Sorting with Xsl Pin
bertcox19-May-04 5:07
bertcox19-May-04 5:07 
Generalregd treeView control Pin
karteek19-May-04 2:50
karteek19-May-04 2:50 
GeneralRe: regd treeView control Pin
Dave Kreskowiak19-May-04 3:04
mveDave Kreskowiak19-May-04 3:04 
GeneralRe: regd treeView control Pin
karteek19-May-04 3:06
karteek19-May-04 3:06 
GeneralRe: regd treeView control Pin
Dave Kreskowiak19-May-04 3:11
mveDave Kreskowiak19-May-04 3:11 
GeneralRe: regd treeView control Pin
karteek19-May-04 3:29
karteek19-May-04 3:29 
GeneralStarting a new process from a windows service. Pin
Klok19-May-04 1:28
Klok19-May-04 1:28 
GeneralRe: Starting a new process from a windows service. Pin
Aryadip19-May-04 2:07
Aryadip19-May-04 2:07 
GeneralRe: Starting a new process from a windows service. Pin
Klok19-May-04 4:16
Klok19-May-04 4:16 
GeneralRe: Starting a new process from a windows service. Pin
Dave Kreskowiak19-May-04 2:23
mveDave Kreskowiak19-May-04 2:23 
GeneralRe: Starting a new process from a windows service. Pin
Klok19-May-04 4:14
Klok19-May-04 4:14 
GeneralRe: Starting a new process from a windows service. Pin
Heath Stewart19-May-04 4:24
protectorHeath Stewart19-May-04 4:24 
QuestionHow to retrieve a graphics object from an image object???? Pin
mmxguy19-May-04 1:13
mmxguy19-May-04 1:13 
AnswerMessage Removed Pin
19-May-04 1:25
wibblewibblewibble19-May-04 1:25 
GeneralRe: How to retrieve a graphics object from an image object???? Pin
mmxguy19-May-04 17:57
mmxguy19-May-04 17:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.