自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 问答 (1)
  • 收藏
  • 关注

原创 点击dgv某列的单元格时触发事件的方法

private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 1) //第一列是 ID (隐藏),第二列才是图片(Pic)列 { int rowIndex = this.dat...

2020-02-16 21:02:05 591

原创 点击dgv图片单元格,将该图片在picturebox中显示

private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = this.dataGridView1.CurrentRow.Index; // 取得当前单元格的行Index string str=dataGridView1.Rows[...

2020-02-14 22:30:20 182

原创 【C#】datagridview Cell 中明明有数据,但是赋值时却提示 错误“System.NullReferenceException:未将对象引用设置到对象的实例“

求解【C#】datagridview Cell 中明明有数据,但是赋值时却提示 错误“System.NullReferenceException:未将对象引用设置到对象的实例“。 public partial class Form_Order_Detail_Saved : Form{ public DataGridViewRow dgvr; public Form_Order...

2019-09-14 00:19:12 1575 1

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除