http://dev.csdn.net/develop/article/26/26590.shtm

解决方案 »

  1.   

    lxcc(虫子) :那个破例子不知道哪里抄来的,不是我想要的,我不要编辑的状态,需要在显示时使用的
      

  2.   

    修改模板列
    <ItemTemplate>
    <asp:DropDownList id="DropDownList1" runat="server" Width="80"></asp:DropDownList>
    </ItemTemplate> 去掉
    <EditItemTemplate>
    <asp:DropDownList id="DropDownList1" runat="server" Width="80"></asp:DropDownList>
    </EditItemTemplate>
    //什么叫破例子?
      

  3.   

    看你的代码好像是正确的,请你仔细跟踪你的系统,在DataGrid中的Item循环的时候
      

  4.   

    代码是正确的,没错但是在在DataGrid中的Item循环时,每个记录如何读进来???
      

  5.   

    自己解决了,使用myReader0["rsshgxzzmm"]在 datagrid 中为不可见列,然后判断其值是否 dropdownlist 中的value相等,