0
Grid.SelectedIndexChanged += new EventHandler(Grid_SelectedIndexChanged);

void Grid_SelectedIndexChanged(object sender, EventArgs e)
{
    DataItem item = Grid.SelectedItems[0].DataItem;
}

未应用过滤器时,所选项目是好的。但是当应用过滤器时,网格只显示过滤的项目,这是正确的。But when the item is selected it's bringing in the item from the full list instead of the filtered.

4

1 回答 1

0

我知道了。以下行成功了。

Grid.EnableViewState = false;
于 2013-04-18T20:47:14.143 回答