我有一个返回 8000 个结果的网格,我想按日期过滤这些结果并将它们存储到一个新的数据表中并稍后重新绑定。我收到此错误:
Input array is longer than the number of columns in this table.
我有哪些选择?
if (e.CommandName == "Filter")
{
DataTable dt = new DataTable();
foreach (GridDataItem item in RadGrid2.Items)
{
for (int i = 0; i < RadGrid2.Items.Count; i++ )
{
dt.Rows.Add(item);
}
}