在Datagridview中定义rowheadermouseclick事件
如何在Datagridview中定义rowheadermouseclick事件要具体做法和具体代码。。。。跪求 --------------------编程问答-------------------- 不是可以直接在属性里面选择该事件么?你要实现什么功能 --------------------编程问答-------------------- 选择后编辑没有实现
鼠标点击Datagridview中的内容可以在textbox中显示出来 --------------------编程问答-------------------- private void dataGridView3_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
textBox7.Text = dataGridView3.Rows[e.RowIndex].Cells["商品名"].Value.ToString();
textBox8.Text = dataGridView3.Rows[e.RowIndex].Cells["商品编码"].Value.ToString();
textBox9.Text = dataGridView3.Rows[e.RowIndex].Cells["单价"].Value.ToString();
textBox10.Text = dataGridView3.Rows[e.RowIndex].Cells["数量"].Value.ToString();
}
运行没有实现
补充:.NET技术 , C#