c#中如何强制终止一个触发事件?

解决方案 »

  1.   

    private void daily_dg_Time_Click(object sender, System.EventArgs e)
    {
    int iRowNum = this.daily_dg_Time.CurrentCell.RowNumber;                // 获得选中DataGrid单元格所在CELL的行号;
    int iColNum = this.daily_dg_Time.CurrentCell.ColumnNumber;             // 获得选中DataGrid单元格所在CELL的列号;
                
    if (iColNum != 0)
    {
    dt = (DataTable)daily_dg_Time.DataSource; if (dt.Rows[iRowNum][iColNum].ToString().Trim() != " *".Trim())
    {
    dt.Rows[iRowNum][iColNum] = " *".ToString();
    }
    else
    {
    dt.Rows[iRowNum][iColNum] = "".ToString();
    }
    daily_dg_Time.DataSource = dt;
    }
    }
    daily_dg_Time是一个datagrid控件,为何每次单击单元格不触发该事件,但是在两个单元格交界处单击就会触发??
      

  2.   

    高手帮忙看下.顶下,是关于加密后查询的问题
    http://community.csdn.net/Expert/topic/4714/4714909.xml?temp=.3460047兄弟先谢了
      

  3.   

    [C#]
    bool PreFilterMessage(
       ref Message m
    );[Parameters]
           m 
           The message to be dispatched. You cannot modify this message. [Return Value]
           true to filter the message and prevent it from being dispatched; false to allow the message to continue to the next filter or control.