如题,多个单元格公用同一个tooltip

解决方案 »

  1.   

      private void dataGridView1_CellMouseMove(object sender, DataGridViewCellMouseEventArgs e)
            {
               // MessageBox.Show(sender.GetType().FullName);
                if (e.ColumnIndex < 0 || e.RowIndex < 0) return;
                           DataTable dt = this.dataGridView1.DataSource as DataTable;            string value = dt.Rows[e.RowIndex].ItemArray[e.ColumnIndex].ToString();            this.toolTip1.Show(value, this,e.X + this.dataGridView1.Location.X,e.Y + this.dataGridView1.Location.Y);         
            }
      

  2.   

    问题二:
    个人愚见 treenode1.Index=2;
        treenode2.Index=1;
      

  3.   

    但是我把SelectionMode设置为FullRowSelect ,就不管用了