如何在winform中子窗体提交数据后刷新父窗体中的DataGRIDVIEW数据?
//子窗体提交后
private void btnOK_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
//判断子窗体
if(form.ShowDialog() == DialogResult.OK)
{
刷新父窗体中的DataGRIDVIEW数据
}
转载于:https://www.cnblogs.com/luyongqun/archive/2008/04/16/1156373.html