private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e)
        {
            string strjf = "fdsaf"; 
 
        }
提示:
错误 1 “WindowsApplication2.Form1”并不包含“dataGrid1_Navigate_1”的定义  
而下边的还没有反应!
private void dataGrid1_click(object sender, System.EventArgs e)
        {
            string strjf = "fdsaf";
        }  请帮帮忙

解决方案 »

  1.   

    private void dataGrid1_click(object sender, System.EventArgs e)
            {
                string strjf = "fdsaf";
            }  
     你把string strjf = "fdsaf";
    改成MessageBox.Show("你刚才是单击的我~");试试
      

  2.   

    1.双击错误提示,用//注释掉相关行;
    2.单击未定义任何消息,加上
      MessageBox.Show(strjf);
      

  3.   

    private void dataGrid1_click(object sender, System.EventArgs e)
            {
                MessageBox.Show("点到我啦!!!!");
            }  刚试过,有反应^_^
      

  4.   

    恩。 比较同意调试的时候 放个MessageBox这样比较醒目些~
      

  5.   

    this.dataGrid1.Navigate += new System.Windows.Forms.NavigateEventHandler(this.dataGrid1_Navigate_1);“WindowsApplication2.Form1”并不包含“dataGrid1_Navigate_1”的定义