c#DataGridView CellClick事件无法触发。在线等,谢谢了
我把源码贴上来,SelectionMode选择的是FullRowSelectpublicForm1(){InitializeComponent();}privatevoi...
我把源码贴上来,SelectionMode选择的是FullRowSelect
public Form1()
{
InitializeComponent();
}
private void dataGridView1_CellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
{
int q = e.RowIndex;
string s = dataGridView1.Rows[q].Cells[0].Value.ToString();
MessageBox.Show("111111111111111111111111111111");
MessageBox.Show(s);
}
谢谢各位了 展开
public Form1()
{
InitializeComponent();
}
private void dataGridView1_CellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
{
int q = e.RowIndex;
string s = dataGridView1.Rows[q].Cells[0].Value.ToString();
MessageBox.Show("111111111111111111111111111111");
MessageBox.Show(s);
}
谢谢各位了 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询