BindingSource.AddNew不会移动到列表末尾的新记录 [英] BindingSource.AddNew doesn't move to new record at end of list

查看:84
本文介绍了BindingSource.AddNew不会移动到列表末尾的新记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Basic 2012中编写一个类似于我在Visual Basic 2010中成功编码的模块,但是当我使用

I am coding a module in Visual Basic 2012 similar to one I have coded successfully in Visual Basic 2010, but when I use

customersBindingSource.AddNew

customersBindingSource.AddNew

.Position不会自动切换到详细信息视图中的新记录。 


the .Position does not automatically shift to the new record in Details View. 

我尝试在单独的代码行中更改.Position和.MoveLast而没有运气。

I have tried changing the .Position and .MoveLast in a separate line of code with no luck.

我可以告诉我们创建了一条新记录,但是位置0的记录仍在视图中。 我希望视图切换到带有空白文本框的新记录。

I can tell that a new record is created, but the record in Position 0 stays in view.  I am expecting the view to switch to the new record with blank textboxes.

这是否与我在此表上的主键是自动生成的事实有关?

Does this have anything to do with the fact that my primary key on this table is autogenerated?

同一表单上的我的删除和编辑选项。

My Delete and Edit options on the same form work.

提前感谢您的任何建议。

Thanks in advance for any suggestions.

推荐答案

你好,

我把它移到获得更好帮助的Winform论坛。

I move it to the Winform forum for getting better help.

感谢您的理解和支持。


这篇关于BindingSource.AddNew不会移动到列表末尾的新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆