你把datagrid加一个双击事件
private void dataGrid_Staff_DoubleClick(object sender, EventArgs e)
{
string str = dataGrid_Staff.SelectedItems[0].Text;
UpdateStaff Upsta = new UpdateStaff();
Upsta.SetText(str);
Upsta.Show();
}
public void SetText(string str)
{
textBox1.Text = str;
}
那是个什么东西 没看见