Click here to Skip to main content
15,902,809 members
Home / Discussions / C#
   

C#

 
GeneralCodeDomSerializer Question Pin
Jamie Nordmeyer14-Apr-04 12:28
Jamie Nordmeyer14-Apr-04 12:28 
GeneralFlex Grid in C# Pin
Greg Ward14-Apr-04 11:26
Greg Ward14-Apr-04 11:26 
GeneralRe: Flex Grid in C# Pin
Heath Stewart14-Apr-04 11:51
protectorHeath Stewart14-Apr-04 11:51 
GeneralRe: Flex Grid in C# Pin
Suelinda_W26-Apr-04 5:42
Suelinda_W26-Apr-04 5:42 
Generaldelegate and AppDomains Pin
VizOne14-Apr-04 11:24
VizOne14-Apr-04 11:24 
GeneralRe: delegate and AppDomains Pin
Heath Stewart14-Apr-04 12:00
protectorHeath Stewart14-Apr-04 12:00 
Generalaccess rows in order that they appear after sorting datagrid Pin
blakeb_114-Apr-04 10:50
blakeb_114-Apr-04 10:50 
GeneralRe: access rows in order that they appear after sorting datagrid Pin
Heath Stewart14-Apr-04 11:47
protectorHeath Stewart14-Apr-04 11:47 
DataTable.Rows will always present the original order, but you can use a DataView to sort and get the sorted order of the contained DataRows. You can do this like so:
DataView view = new DataView(myDataTable);
view.Sort = "myIDColumn";
foreach (DataRowView rowView in view)
  Console.WriteLine(rowView.Row.ItemArray);
You should be able to get this using theTable.DefaultView, which should return the DataView in its current state that the DataGrid used to sort or filter the data.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: access rows in order that they appear after sorting datagrid Pin
blakeb_116-Apr-04 9:58
blakeb_116-Apr-04 9:58 
GeneralUsing DataBinder.Eval Pin
Mike Ellison14-Apr-04 10:19
Mike Ellison14-Apr-04 10:19 
GeneralRe: Using DataBinder.Eval Pin
Heath Stewart14-Apr-04 10:31
protectorHeath Stewart14-Apr-04 10:31 
GeneralRe: Using DataBinder.Eval Pin
Mike Ellison14-Apr-04 12:33
Mike Ellison14-Apr-04 12:33 
GeneralWeb services question... Pin
Manster14-Apr-04 9:00
Manster14-Apr-04 9:00 
GeneralRe: Web services question... Pin
Heath Stewart14-Apr-04 9:05
protectorHeath Stewart14-Apr-04 9:05 
GeneralRe: Web services question... Pin
Manster15-Apr-04 3:20
Manster15-Apr-04 3:20 
GeneralRe: Web services question... Pin
Heath Stewart15-Apr-04 3:24
protectorHeath Stewart15-Apr-04 3:24 
GeneralRe: Web services question... Pin
Manster15-Apr-04 3:52
Manster15-Apr-04 3:52 
GeneralRe: Web services question... Pin
Heath Stewart15-Apr-04 3:57
protectorHeath Stewart15-Apr-04 3:57 
GeneralRe: Web services question... Pin
Manster15-Apr-04 4:02
Manster15-Apr-04 4:02 
Generalmultiple entries in Add/Remove Programs Pin
econnor14-Apr-04 8:58
econnor14-Apr-04 8:58 
GeneralRe: multiple entries in Add/Remove Programs Pin
Heath Stewart14-Apr-04 9:03
protectorHeath Stewart14-Apr-04 9:03 
GeneralP/Invoke Pin
Dominik Reichl14-Apr-04 6:58
Dominik Reichl14-Apr-04 6:58 
GeneralRe: P/Invoke Pin
Heath Stewart14-Apr-04 7:41
protectorHeath Stewart14-Apr-04 7:41 
Generalconvert unicode to ascii Pin
eranas14-Apr-04 6:57
eranas14-Apr-04 6:57 
GeneralRe: convert unicode to ascii Pin
Heath Stewart14-Apr-04 7:24
protectorHeath Stewart14-Apr-04 7:24 

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.