• 操作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;
                                }
                            }
                        }
                    }

    }

  • 相关阅读:
    android中的AIDL进程间通信
    [Android自定义控件] Android自定义控件
    Android控件之SlidingDrawer(滑动式抽屉)详解与实例
    Android 广播大全 Intent Action 事件
    Activity和Service绑定
    String.format()用法
    Android之Handler用法总结
    android中的AIDL进程间通信
    Android: 在 TextView 里使用删除线
    fastjson生成和解析json数据
  • 原文地址:https://www.cnblogs.com/dashi/p/4034756.html
Copyright © 2020-2023  润新知