C#运行时出现dataGridView这个表格,我想鼠标点击哪一行,然后MessageBox就显示这行的全部信息。
解决方案 »
- C#中property取代public field的好处是什么?
- C#开发的网站项目需要对多个SQL Server数据库进行各种数据操作
- 急~求助:C#2005关于treeview和datagridview
- 100分请教.ToString()方法为什么不涉及装箱和拆箱操作
- winform datagridivew 绑定数据速度问题
- 怎么使用“对象测试工作台”,我创建实例后,在里面什么也没有呢?
- 大家有没有遇到过这样的问题,我百思不得其解.
- 这是怎么回事??无法生成临时类(result=1)。 error CS2001: δ???C:\WINDOWS\TEMP\oucmsx7h.0.cs error CS2008: 未指定输入
- asp.net 网页间传值问题
- 上传文件来服务器,如何给服务器中的文件夹设置权限
- C#代码图片识别分割,看不懂求注释
- C#添加新项目中没有其他项目
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
string tmpDisplay = string.Empty;
for (int i = 0; i < this.dataGridView1.ColumnCount; i++)
{
tmpDisplay = tmpDisplay + this.dataGridView1.Rows[e.RowIndex].Cells[i].Value.ToString();
}
MessageBox.Show(tmpDisplay);
}