我有一个具有以下值的数据表(_dataTableAvailable):
Name Id Selected
- Global 2100 False
ASpecial 1200 False
BSpecial 2300 False
GSpecial 400 False
在我使用以下代码后:
DataView dataViewAvailable = new DataView(_dataTableAvailable, "selected=False", "name", DataViewRowState.CurrentRows);
排序顺序变了!!
Name Id Selected
ASpecial 1200 False
BSpecial 2300 False
- Global 2100 False
GSpecial 400 False
我想要的是我得到相同的订单。我怎样才能做到这一点?
我使用 Visual Studio 2005 (C# 2.0)。