hello
i got two datagridviews
the problem is with the first datagridview code.
nothing happens when i click with my mouse on the header .
but in the second one, the message appear
How to solve this problem?
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void dataGridView1_ColumnHeaderMouseClick(
object sender, DataGridViewCellMouseEventArgs e)
{
MessageBox.Show("hello");
}
private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
MessageBox.Show("hello");
}
}
}