zoukankan      html  css  js  c++  java
  • 操作GridView嵌套的Repeater控件

    protected void gridView_DataBound(object sender, EventArgs e)             

    {   

     int index = gv.EditIndex;

                    Repeater rpt = (Repeater)gv.Rows[index].Cells[2].FindControl("rpt");
                    RepeaterItemCollection cc = rpt.Items;

                    for (i = 0; i < cc.Count; i++)
                    {
                        for (int j = 0; j < cc[i].Controls.Count;j++)
                        {
                            HyperLink list = cc[i].Controls[j] as HyperLink;
                            if (list != null)
                            {
                                list.Visible = false;
                            }
                            else
                            {
                                TextBox lb = cc[i].Controls[j] as TextBox;
                                if (lb != null)
                                {
                                    lb.Visible = true;
                                }
                            }
                        }
                    }

    }

  • 相关阅读:
    HDU 3697贪心
    HDU 3226 背包
    numpy_2nd 新建矩阵的五种方法 array zeros empty arange().reshape()
    numpy_1st 属性 ndim,shape,size
    CV学习笔记第二课(上)
    33. 搜索旋转排序数组 二分法
    35. 搜索插入位置 今天就是二分法专场
    34.在排序数组中查找元素的第一个和最后一个位置 二分法
    CV第三课
    CV第二课(下)
  • 原文地址:https://www.cnblogs.com/dashi/p/4034756.html
Copyright © 2011-2022 走看看