Trasnfer Data in datagrid in form1 to Text box in form2
-
I have Form1 form1 have 2 textbox & 1 button I cLICK bUTTON 1 tHEN SHOW fORM2 form2 have ONE datagrid i Want when Click IN row then Cell[0] transfer to Text BOX in form1 how i can?
-
I have Form1 form1 have 2 textbox & 1 button I cLICK bUTTON 1 tHEN SHOW fORM2 form2 have ONE datagrid i Want when Click IN row then Cell[0] transfer to Text BOX in form1 how i can?
Set up an event in form2 that form1 subscribes to. Either pass the data via a custom EventArgs with the event, or via a property on form2.
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
I have Form1 form1 have 2 textbox & 1 button I cLICK bUTTON 1 tHEN SHOW fORM2 form2 have ONE datagrid i Want when Click IN row then Cell[0] transfer to Text BOX in form1 how i can?
The principal is demonstrated here[^], just adapt it to suit your situation.
Dave
If this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)