我没星星啊.
用javascript写吧

解决方案 »

  1.   

    <asp:CheckBoxList AutoPostBack="True" id="CheckBoxList1" runat="server"  OnSelectedIndexChanged="ggg" ></asp:CheckBoxList>public void ggg(object sender, System.EventArgs e)
    {
    //写代码呀,和平常的没什么两样呀
    }
      

  2.   

    若要找相关其他模板列信息
    DataGridItem item = (DataGridItem)cell.Parent;
    DropDownList T_s=(DropDownList)item.FindControl("D_name");public void ggg(object sender, System.EventArgs e)
    {
    //写代码呀,和平常的没什么两样呀
    CheckBoxList cbl = (CheckBoxList)sender;
    TableCell cell = (TableCell)cbl.Parent;
    DataGridItem item = (DataGridItem)cell.Parent;//找到DataGridItem
    //寻找该模板的其他列,如是TextBox
    TextBox T_s=(TextBox)item.FindControl("D_name");
    }
      

  3.   

    public void ggg(object sender, System.EventArgs e)
    {
    //写代码呀,和平常的没什么两样呀
    CheckBoxList cbl = (CheckBoxList)sender;
    TableCell cell = (TableCell)cbl.Parent;
    DataGridItem item = (DataGridItem)cell.Parent;//找到DataGridItem
    //寻找该模板的其他列,如是TextBox
    TextBox T_s=(TextBox)item.FindControl("D_name");
    }