如何在单击任何其他控件时关闭gridview插入表单 [英] how to close the gridview insert form on clicking any other control

查看:85
本文介绍了如何在单击任何其他控件时关闭gridview插入表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有2个gridviews的表单.单击网格上的插入按钮后,将打开插入记录表单.现在,如果我单击其他网格的添加按钮,则无需填写该表单中的任何内容,则前一个网格的插入记录表单为没有关闭.我想关闭该表格.请提出一些方法.

i hav a form which have 2 gridviews.on clicking the insert button on the grid the insert record form opens.now without filling anything in that form if i click the add button of other grid the insert record form of previous grid is not getting closed.i want to close that form.pls suggest some method.

推荐答案

为此表格创建对象,您需要关闭该表格并使用close()关闭表格.在添加按钮的点击事件中执行此操作
create object for that form which you need to close and use close() to close the form. Do this in add button''s click event


这篇关于如何在单击任何其他控件时关闭gridview插入表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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