这还有无人能解答的问题,帮个忙高手进去看看http://community.csdn.net/Expert/topic/4560/4560051.xml?temp=.8927271

解决方案 »

  1.   

    单击单元格和你下面的链接问题好像没有关系啊
    获得单元格的坐标的简单的方法是使用mousedown事件中捕获
    private void dataGrid1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
    {
    int x= e.X;
    int y=e.Y;
    }
      

  2.   

    你的是cs结构的阿!
    没注意,嘿嘿
    上面的事件好像不能用了
    在datagrid中使用模版列,模版列中使用服务器端控件
    事件响应的是datagrid的itemcommand事件,通过模版列中的服务器端控件名称获得具体的位置
      

  3.   

    晕死
    楼上的,你知道什么是cs结构的?
    你自己写的代码就是WinForm下的嘛,却要给别人讲WebForm下的东西。
      

  4.   

    protected void dataGrid1_MouseDown
    (object sender, System.Windows.Forms.MouseEventArgs e)
    {
         System.Windows.Forms.DataGrid.HitTestInfo myHitTest;
         myHitTest = dataGrid1.HitTest(e.X,e.Y);
     }
    具体的查看System.Windows.Forms.DataGrid.HitTestInfo 的帮助,讲得比较详细