Form2 DataGridView to Form2..

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);
 
G

Guest

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
 
G

Guest

could not see the static variable from form2

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top