Click here to Skip to main content
16,014,759 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hai friends i need an immediate help....

-- c#
-- win form

I need to add data to datagridview from form1 to form2...

datagridview is in form1,when celleditbegin event start the form2 will show and then when i press a close button in form2 the data in form2 will be gone to datatagridview of form1 automatically....

plz help me i need to complete the project....
Posted
Comments
R. Giskard Reventlov 18-Aug-10 5:43am    
What have you tried? How did that work out? What specific issue from that attempt do you have?
T.Saravanann 18-Aug-10 5:54am    
Hi aneesh Kumar,
Your question is not clear.Can u explain briefly.
Christian Graus 18-Aug-10 5:54am    
Reason for my vote of 1
OP appears to be doing paid work, despite not knowing the basics of C#, or understanding plain answers.
Christian Graus 18-Aug-10 6:10am    
His question is incredibly clear. He's just too dumb to understand the answer.
Toli Cuturicu 18-Aug-10 6:39am    
Reason for my vote of 1
Less than One!

1 solution

Don't tell us how fast to help you, help here is free.

You can use a delegate to make an event in form2 call code in form1, although as you want it to happen on the close event, that's not really needed. Just access the data from the form object after you close it. How can you have a project to complete, and not know basic, entry level C# ? Perhaps you should buy a book and read it ? I assume no-one is paying for your code at this point ?
 
Share this answer
 
Comments
aneesh kumar k 18-Aug-10 5:46am    
frnd i need the help from public that is why am posted... dont disappoint me
Christian Graus 18-Aug-10 5:53am    
I told you how to do it. If you don't know enough about C#, or google, to make a start based on my answer, you should give up on programming, at least until you can read a 'for dummies' book or something. Use a delegate, or get the info from the form object, after adding a property to expose it.
aneesh kumar k 18-Aug-10 5:57am    
thanks for ur reply........

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