//获取排序后的DataTable
DataTable _dt = lvwItems.GridControl.DataSource as DataTable;
DataTable table = _dt.Clone();
for (int i = 0; i < lvwItems.RowCount; i++)
{
if (lvwItems.IsGroupRow(i))
continue;
var dr = lvwItems.GetDataRow(i);
if (dr == null)
continue;
table.Rows.Add(dr.ItemArray);
}
c#中使用devexpress gridcontrol 获取排序后的gridview数据
最新推荐文章于 2024-10-03 09:28:50 发布