datagrid

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

e-mid

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());

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top