首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

DataGridView右键选中国人民银行

2012-12-26 
DataGridView右键选中行?private void dgvCatelogList_CellMouseDown(object sender, DataGridViewCellMou

DataGridView右键选中行

?

private void dgvCatelogList_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)?? ? ? ?{?? ? ? ? ? ?if (e.Button == MouseButtons.Right && e.RowIndex > -1 && e.ColumnIndex > -1)?? ? ? ? ? ?{?? ? ? ? ? ? ? ?dgvCatelogList.CurrentRow.Selected = false;?? ? ? ? ? ? ? ?dgvCatelogList.Rows[e.RowIndex].Selected = true;?? ? ? ? ? ?}?? ? ? ?}

热点排行