怎么得到鼠标点击了WinForm的DataGrid的什么位置?多谢 怎么得到鼠标点击了WinForm的DataGrid的什么位置?或者知道鼠标的当前位置是在WinForm的DataGrid的什么位置?多谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用DataGrid.HitTest()protected void dataGrid1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e){ Console.WriteLine(); System.Windows.Forms.DataGrid.HitTestInfo myHitTest; // Use the DataGrid control's HitTest method with the x and y properties. myHitTest = dataGrid1.HitTest(e.X,e.Y); Console.WriteLine(myHitTest); Console.WriteLine("Column " + myHitTest.Column); Console.WriteLine("Row " + myHitTest.Row); Console.WriteLine("Type " + myHitTest.Type); Console.WriteLine("ToString " + myHitTest.ToString()); Console.WriteLine("Hit " + myHitTest.Type.ToString());} 如何在WPF下用Hyperlink实现xaml窗体间传递参数 C# 用SendKeys发送组合键怎么做啊 用随机数给上传的图片重命 用代码动态生成固定格式的DataGridView控件 返回textbox中的^string转换为数字 VC++ c# 网页跳转问题!! 刚接触winform,求关于多线程,socket相关的教程与建议 各位大侠一定要来帮看看啊(在浏览器中指定的Web地址的附件如果限制不能打开,只有Session用户才可打开) 求教~~先谢咯~~ 求个正则表达式提取IP地址和端口 关于下拉菜单 请各位大虾帮帮忙
protected void dataGrid1_MouseDown
(object sender, System.Windows.Forms.MouseEventArgs e)
{
Console.WriteLine();
System.Windows.Forms.DataGrid.HitTestInfo myHitTest;
// Use the DataGrid control's HitTest method with the x and y properties.
myHitTest = dataGrid1.HitTest(e.X,e.Y);
Console.WriteLine(myHitTest);
Console.WriteLine("Column " + myHitTest.Column);
Console.WriteLine("Row " + myHitTest.Row);
Console.WriteLine("Type " + myHitTest.Type);
Console.WriteLine("ToString " + myHitTest.ToString());
Console.WriteLine("Hit " + myHitTest.Type.ToString());
}