点击DataGridView里面的某一个单元格的事件
来源:互联网 发布:单片机lcd12864 编辑:程序博客网 时间:2024/06/05 04:15
private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e){
if (e.ColumnIndex == 2)
{
this.dataGridView2.Controls.Clear();
btnDetail.Bounds = this.dataGridView1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true);
btnDetail.Visible = true;
btnDetail.Text = this.dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString();
btnDetail.Click += new EventHandler(btnDetail_Click);
this.dataGridView1.Controls.Add(btnDetail);
}
else
{
btnDetail.Visible = false;
}
}
0 0
- 点击DataGridView里面的某一个单元格的事件
- datagridview编辑列的颜色,设置点击datagridview当前单元格事件
- DataGridView 点击修改单元格的值
- 点击DataGridView的单元格自动选中行的设置!
- 修改dataGridView的单元格
- 捕捉DataGridView的单元格编辑时的键事件
- 双击datagridview表头或第一列的单元格触发事件
- 双击datagridview表头或第一列的单元格触发事件
- android里面的点击事件总结
- webView里面图片的点击事件
- listview item里面的控件点击事件
- table 操作——点击表格某一行获取这一行的某一个单元格
- 怎么给Datagridview里面的控件添加事件
- 怎么给Datagridview里面的控件添加事件
- 得到dataGridView单元格的值
- DataGridView单元格的控制操作
- datagridview"合并单元格的测试"
- DataGridView改变选择的单元格
- html中offsetTop、clientTop、scrollTop、offsetTop各属性介绍
- fatal error C1047: The object or library file "..."was created with an older compiler than other obj
- SPOJ LCS2 Longest Common Substring II 后缀自动机
- 后台定时任务的利器Hangfire
- 安装其他Myeclipse插件后,SVN失效
- 点击DataGridView里面的某一个单元格的事件
- msmtp邮件转发工具,推送报错统计
- 手把手教你编写一个具有基本功能的shell
- C++学习笔记001-关于cin的几个用法
- iOS开发---SQL语句大全
- MYSQl 时间类型(简单应用)
- Android绘图-Paint、Canvas、Bitmap、BitmapFactory
- android 性能优化二
- ios8下UISearchBar文字和图标重叠