form1
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
Form2 frm = new Form2();
frm.StrName = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
frm.Show();
}
form2中
private string strName = string.Empty;
public string StrName
{
get
{
return strName;
}
set
{
strName = value;
this.xl_name.Text = strName;
}
}
这样就就ok了!!!!谢谢你们的光临....