I have a program with multiple form in C#. I used a DataGridView to display a list of Students from my database. Whenever the user clicks on the datagrid, it automatically saves the name of the selected student on a string variable.

My question now is, how can I get the value of that variable from Form1 to Form2?