try to remove this line:DataGrid1.SelectedIndex=(int)e.Item.ItemIndex;

解决方案 »

  1.   

    我还想问你个问题:如何在DATAGRID表头里添加下拉框。谢谢
      

  2.   

    >>>>若把那一行删除将无法实现我程序中的删除功能能否教我如何取到当前点击的值then something is wrong with your 删除功能 codee.Item.Attributes["onclick"]=" alert(" + e.Item.ItemIndex.ToString() + "); SetuserValue('"+e.Item.Cells[0].Text+"');if (obj == this) return; if (obj != null) obj.style.backgroundColor = ''; this.style.backgroundColor='#cccccc'; obj=this;";
      

  3.   

    saucer(思归, MS .NET MVP) 我的问题还没有解决,快帮忙