protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List<myDemoEntity> list = new List<myDemoEntity>();

                for (int i = 0; i < 25; i++)
                {
                    myDemoEntity entity = new myDemoEntity();
                    entity.SelectedUserId = i.ToString();
                    entity.SelectedUserDisplayName = "SelectedUserDisplayName";
                    entity.SelectedUserUserFullPath = "SelectedUserUserFullPath";
                    list.Add(entity);
                }

                this.detailGrid.InitialData = list;
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List <myDemoEntity> list = new List <myDemoEntity>();

                for (int i = 0; i < 25; i++)
                {
                    myDemoEntity entity = new myDemoEntity();
                    entity.SelectedUserId           = i.ToString();
                    entity.SelectedUserDisplayName  = "SelectedUserDisplayName";
                    entity.SelectedUserUserFullPath = "SelectedUserUserFullPath";
                    list.Add(entity);
                }

                this.detailGrid.InitialData = list;
            }
        }