在我选择GridView中的其他单元格之前,不接受DataGridView更改

时间:2018-02-13 05:50:32

标签: c# winforms datagridview

我有一个简单的DataGridView和一个DataTable作为其来源,现在在gridview中进行更改或选中一行的复选框,然后单击我在ToolStrip上的按钮,这些更改没有反映,但是当我将选择移动到其他单元格然后单元格中的更改工作。请查看以下图像。 Here I Checked the checkbox of the last line and clicked the delete button on the toolstrip but it still says that the value in that cell is False

Now here when i Selected another cell , It shows the right value

有没有办法在不必选择其他单元格的情况下应用这些更改 注意:使用常规按钮它可以正常工作,但我的要求是在ToolStrip上有一个按钮。

0 个答案:

没有答案