搜索
编程论坛
→
.NET专区
→
『 C# 论坛 』
→ 请问怎样获取dataGridView选取行的所有的值
标题:
请问怎样获取dataGridView选取行的所有的值
只看楼主
oldbabyxixi
等 级:
新手上路
帖 子:39
专家分:0
注 册:2007-9-16
楼主
问题点数:0 回复次数:2
请问怎样获取dataGridView选取行的所有的值
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
int rowIndex = e.ColumnIndex;
if (rowIndex == 8)
{
//我想知道在这里怎样可以获取rowIndex == 8的所在行的值,谢谢!:)
}
}
搜索更多相关主题的帖子:
dataGridView
rowIndex
获取
sender
void
2008-04-21 23:26
ncb123
来 自:杭州
等 级:
论坛游民
帖 子:36
专家分:18
注 册:2007-10-15
第
2
楼
得分:0
我也正好遇到这个问题,请达人讲解一下
每天进步一点点
2008-04-22 20:42
青格儿
等 级:
贵宾
威 望:
11
帖 子:698
专家分:20
注 册:2007-7-31
第
3
楼
得分:0
DataGrid中点击某字段获得这它所在的一行
private void dataGrid1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
Point pt = new Point(e.X,e.Y);
DataGrid.HitTestInfo hit = dataGrid1.HitTest(pt);
if(hit.Type == DataGrid.HitTestType.Cell)
{
dataGrid1.Select(hit.Row);
}
2008-04-23 08:48
3
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-210348-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 1.984933 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved