本帖最后由 shelly1214chen 于 2009-10-12 10:21:26 编辑

解决方案 »

  1.   


    dataGridView1.Rows[0].Cells[0].Selected = true;
      

  2.   

    1,设置,datagridview的contextMenuStrip属性值为指定的菜单效果,菜单显示位置是鼠标点击位置2,
     private void 编辑该用户ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                if(this.userInfoView .SelectedCells .Count >0)
                {
                    selectedRow = this.userInfoView.Rows[this.userInfoView.SelectedCells[0].RowIndex];
                    selectedRow.Selected = true;


    。。



    问题基本解决了莪