Code Red > .NET
Datagridview problem
(1/1)
samideqlqpart:
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");
}
}
}
kdub_nz:
I can't reproduce this issue.
I assumed a windows desktop .NET Framework Form. VS2019 Net 4.7.2
What is your DataGridView.SelectionMode Property for the controls ( inBehaviour )
Perhaps you could build and post a zip of a minimal solution to demonstrate your problem.
Ditto if this is an AutoCAD plug-in.
egards,
samideqlqpart:
Hi
Yes i'm using NET Framework VS2019 Net 4.7.2
i had NET Framework VS2013 Net 4.5 and everything worked fine
how to cure it?
also DataGridViewCellPaintingEventArgs don't work now.
thanks
samideqlqpart:
hi
in fact net Framework 4.7.2 is the problem!!!!
with framework 4.5 all is perfect.
now what can i do with framework 4.7.2?
is there any missed referencies?
Navigation
[0] Message Index
Go to full version