I have datagridview in form1. How can I access datagridview from form2.
private void button1_Click(object sender, EventArgs e) { string sql1 = \"in
In Form2:
public DataGridView Dgv { get; set; }
In Form1:
Form2 f = new Form2(); f.Dgv = mainframe.Dgv;
In Form2 access its own Dgv propety.