Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900