且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何刷新GridView中插入数据后?

更新时间:2023-12-03 13:07:16

在你的方法btnInsertOrderSignal_Click你又加入新的项目和数据绑定。这是正确的,但你不更新数据源绑定()之前。这意味着将结合到原始数据源

In your method btnInsertOrderSignal_Click you are adding a new item and databinding again. This is correct but you are not updating your datasource before databinding(). This means that it will bind to the original datasource.

似乎有什么填充你的CustomControl需要再次调用。 GetOrderSignals()?

It seems that what populates your CustomControl needs to be called again. GetOrderSignals()?