Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a datagrid in form1 with few rows. when i click a cell of a datagrid form2 should open. form2 contains a textbox and save_button. what i type in the textbox should save in the respective cell of the datagrid in form1. please guide me...
Posted
Comments
[no name] 14-Aug-12 10:26am    
"please guide me"... okay... create a cell click event. In the click event, show your form2. When form2 closes, get the new data. Insert new data into cell.
mails4vijayakumar 14-Aug-12 10:33am    
Can u please send me a sample code for "When form2 closes, get the new data. Insert new data into cell."
[no name] 14-Aug-12 10:42am    
Sure I *could* do that. But I have my own job to do and doing your job for you is not my job. And if I did it for you then you learn nothing. Give it a try for yourself.
Christian Amado 14-Aug-12 10:51am    
Nice answer. Hey Wes can you build a rocket for me? Thanks
[no name] 14-Aug-12 10:53am    
I don't do your homework either :-)

1 solution

Follow these steps:
1. Create a Cell Click Event.
2. Create a form2 object and call to Show() method.
3. Create an event handler for Close() event for form2.
4. Read the manual here[^].

Hope it helps.
 
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