datagrid

  • Thread starter Thread starter e-mid
  • Start date Start date
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());

}
 
e-mid said:
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);
God Damn it!!!!!!!


DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);

if(hti.Type == DataGrid.HitTestType.Cell)

MessageBox.Show(dataGrid1[hti.Row,hti.Column].ToString());

}
 
Back
Top