void LinksDgv_Click(object sender, EventArgs e)
        {
            DataGridView dgv     = sender as DataGridView;
            var          curCell = dgv.CurrentCell;

            if (curCell == null)
            {
                return;
            }
            if (curCell.ColumnIndex == _dgvColumnIndex_confirm)  //是否是点击了“确定”按钮
            {
                DataGridViewsOpt.Synchronize(_dgvsOpt, dgv.SelectedRows[0]);
            }
        }
        protected override void delBtn_Click(object sender, EventArgs e)
        {
            int dgvIndex = _consDgv.CurrentRow.Index;

            DataGridViewsOpt.DelRow(_dgvsOpt, _dgvsOpt.DataGridViweList[dgvIndex]);
        }
Example #3
0
 protected override void delBtn_Click(object sender, EventArgs e)
 {
     DataGridViewsOpt.DelRow(_dgvsOpt, _dgvsOpt.DataGridViweList[tabControl1.SelectedIndex]);
 }