110,538
社区成员
发帖
与我相关
我的任务
分享
if (this.dataGridView1.CurrentCell.ColumnIndex == 5)
{
Rectangle rect = dataGridView1.GetCellDisplayRectangle(dataGridView1.CurrentCell.ColumnIndex, dataGridView1.CurrentCell.RowIndex, false);
btnDesignEmpID.Left = rect.Left;
btnDesignEmpID. = rect.Top;
btnDesignEmpID.Width = rect.Width;
btnDesignEmpID.Height = rect.Height;
if (dataGridView1.CurrentCell.Value != null)
{
//btnDesignEmpID.Text = dataGridView1.CurrentCell.Value.ToString();
}
btnDesignEmpID.Visible = true;
//dataGridView1.CurrentCell.Value = dtpDesignFinishyj.Text;
}
else
{
btnDesignEmpID.Visible = false;
}