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;
}
单击单元格是会显示控件,我用cmb的时候显示正常的,换成btn时怎么显示在单元格上面了??
解决方案 »
- 一个关于动态库与数据库连接的问题,盼高手出现
- [WinForm]AxWebBrowser浏览网页,怎么获取网页中图片的属性
- COOKIES的System.NullReferenceException: 未将对象引用设置到对象的实例
- .net应用程序监听器
- 請問有那位大蝦有 .net 2005 加態生成水晶報表的源碼借來用一用
- 虽说只由5 条裤衩 。。。。 ;散分,鼓舞士气。。。
- win2K+SP4装完DotNetFX之后就无法重起,大家遇到这种情况吗?不知道的也来接个分阿
- SDK 1.1如何安装
- 怎么把一个SQl server存储过程中返回的两个结果集取出来~~~~~~~
- 请问在玩《三国志VIII》时可用什么软件使其文字转换成简体或繁体字,要求软件的大小尽量小?????急急急
- asp.Net数据导出问题 急急急
- 菜鸟问题
忘记在窗体载入时把按钮加入datagridview里