datagridview怎样实现选定一行时某一列自动处于编辑状态(就是有光标闪),如果有数据则数据处于选中状态. datagridview怎样实现选定一行时某一列自动处于编辑状态(就是有光标闪),如果有数据则数据处于选中状态. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int rows = -1; private void dataGridView1_SelectionChanged(object sender, EventArgs e) { int r = this.dataGridView1.SelectedRows[0].Index; if (r != rows) { this.dataGridView1.CurrentCell = this.dataGridView1.Rows[r].Cells[2]; this.dataGridView1.BeginEdit(true); rows = r; } } 求解 高手们来帮帮忙!!!!! 使用HttpWebRequest向aspx表单Post数据时,因VIEWSTATE过长,导致401错误 如何在C#的datagridview实现复制黏贴 如何优化搜索引擎 C#右键菜单问题 怎么判断 "DataTable" 里面有没有值? 如何在datagrid控件中实现dropdownlist的数据邦定 对EXCEL的操作。如何使程序变得通用?在线等!!! dev 的ToolTipController,如何让他自动换行? c#数据集添加 向ACCESS关系表中 删除同步,更新同步。带图的(DataSet类)
private void dataGridView1_SelectionChanged(object sender, EventArgs e)
{
int r = this.dataGridView1.SelectedRows[0].Index;
if (r != rows)
{
this.dataGridView1.CurrentCell = this.dataGridView1.Rows[r].Cells[2];
this.dataGridView1.BeginEdit(true);
rows = r;
}
}