Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 datagridview 的表单。当我单击Add newButton 时,会出现一个子窗体,用于将新项目插入 datagridview。
Add new
我想在从子表单插入新项目时刷新 datagridview 的数据源。
我认为您希望在将项目添加到网格后调用网格上的 DataBind 方法。当对话框关闭或用户选择添加项目后,调用 grid.DataBind()。