private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
textbox.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();/*获得鼠标选取行的第一列数据*/
}
private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
textbox.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();/*获得鼠标选取行的第一列数据*/
}
WPF中经
1、TextBox 介绍 TextBox :文本输入框控件,是WPF中最基本的文字输入控件。它允许最终用户在一行、对话输入、或多行编写,就像是个编辑器。 尝试在文本框里鼠标右击。你会得到一个选项菜单,允许你和Windows剪贴板一块使用这个TextBox。默认的撤销和重做的键盘快捷方式(Ctrl + Z 和 Ctrl + Y)也应该是起作用的,并
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M