Form2 DataGridView to Form2..

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to code……..
Form1 DataGridView
Form2 DataGridView the selected rows data to be sent to Form1 and Form2 to
exit.

// Form1
DataGridViewRowCollection rows = this.mGrid.Rows;
rows.Add(mUser, mPass, mFullName, mSection, mProfile);
 
Declare a static variable in Form1 and assign the values in Form2 in static
variable,
then you can get the values in Form1.

Regards,
Amal
 
could not see the static variable from form2

how to declare? and to get?
puclic static string mString = "";
 
Back
Top