Exemplo n.º 1
0
        private void dgvMain_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvMain.Columns[e.ColumnIndex].Name.Equals("编辑") && e.RowIndex >= 0)
            {
                string KeyID = Convert.ToString(dgvMain.Rows[e.RowIndex].Cells["KeyID"].Value);
                if (string.IsNullOrEmpty(KeyID))
                {
                    return;
                }

                Client.frmClientEdit MyEdit = new frmClientEdit();
                MyEdit.ClientID = KeyID;
                MyEdit.ShowDialog();
                bgLoad.RunWorkerAsync();
            }
        }
Exemplo n.º 2
0
        private void dgvMain_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvMain.Columns[e.ColumnIndex].Name.Equals("编辑") && e.RowIndex >= 0)
            {
                string KeyID = Convert.ToString(dgvMain.Rows[e.RowIndex].Cells["KeyID"].Value);
                if (string.IsNullOrEmpty(KeyID))
                    return;

                Client.frmClientEdit MyEdit = new frmClientEdit();
                MyEdit.ClientID = KeyID;
                MyEdit.ShowDialog();
                bgLoad.RunWorkerAsync();
            }
        }