Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Bringing in a datatable in the proper order.

$
0
0

I have a data table in which I do foreach(datarow row in datatable.select("Item > 5"))

{

}

I would like all the rows in the selected table to show in the order it is in the table is that possible?

I know I can do foreach(datarow row in datatable.select("Item > 5", "Item"))

{

}

and it will be ordered by item, but I do not want that. I want it to be in the order it's in the table which may not be in order of Item.

How can this be done?


Debra has a question


Viewing all articles
Browse latest Browse all 2535

Trending Articles