E
e-mid
What is wrong here?
sometimes, it catches clicks but usually do not.
private void dataGrid1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
Point pt = new Point(e.X,e.X);
DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);
if(hti.Type == DataGrid.HitTestType.Cell)
MessageBox.Show(dataGrid1[hti.Row,hti.Column].ToString());
}
sometimes, it catches clicks but usually do not.
private void dataGrid1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
Point pt = new Point(e.X,e.X);
DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);
if(hti.Type == DataGrid.HitTestType.Cell)
MessageBox.Show(dataGrid1[hti.Row,hti.Column].ToString());
}