private void BT_EditSequ_Click(object sender, EventArgs e) { if (gv.GetFocusedDataSourceRowIndex() < 0 || gv.RowCount < 1) { MessageBox.Show("没有路径"); return; } Edit_Sequen frm = new Edit_Sequen(CBE_RecipeName.EditValue.ToString()); frm.ShowDialog(); CBE_RecipeName_TextChanged(this, null); }