• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WebControls.TableRow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Web.UI.WebControls.TableRow的典型用法代码示例。如果您正苦于以下问题:C# TableRow类的具体用法?C# TableRow怎么用?C# TableRow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TableRow类属于System.Web.UI.WebControls命名空间,在下文中一共展示了TableRow类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Page_Load

        private void Page_Load(object sender, System.EventArgs e)
        {
            Table tb = new Table();
            tb.Width = new Unit( 100, UnitType.Percentage );
            TableRow row;
            TableCell cell;

            HyperLink lnk;

            if( Context.User.Identity.IsAuthenticated )
            {
                //create a new blank table row
                row = new TableRow();

                //set up the news link
                lnk = new HyperLink();
                lnk.Text = "News";
                lnk.NavigateUrl = "News.aspx";

                //create the cell and add the link
                cell = new TableCell();
                cell.Controls.Add(lnk);

                //add the new cell to the row
                row.Cells.Add(cell);
            }
            else
            {
                //code for unauthenticated users here
            }

            //finally, add the table to the placeholder
            phNav.Controls.Add(tb);
        }
开发者ID:mrd030485,项目名称:finna-be-ninja,代码行数:34,代码来源:Default.aspx.cs


示例2: InstantiateIn

        public void InstantiateIn(Control control)
        {
            control.Controls.Clear();
            Table table = new Table();
            table.BorderWidth = Unit.Pixel(0);
            table.CellSpacing = 1;
            table.CellPadding = 0;
            TableRow row = new TableRow();
            row.VerticalAlign = VerticalAlign.Top;
            table.Rows.Add(row);
            TableCell cell = new TableCell();
            cell.HorizontalAlign = HorizontalAlign.Right;
            cell.VerticalAlign = VerticalAlign.Middle;
            cell.Controls.Add(First);
            cell.Controls.Add(Previous);
            row.Cells.Add(cell);
            cell = new TableCell();
            cell.HorizontalAlign = HorizontalAlign.Center;
            cell.Controls.Add(Pager);
            row.Cells.Add(cell);
            cell = new TableCell();
            cell.VerticalAlign = VerticalAlign.Middle;
            cell.Controls.Add(Next);
            cell.Controls.Add(Last);
            row.Cells.Add(cell);

            control.Controls.Add(table);
        }
开发者ID:romanu6891,项目名称:fivemen,代码行数:28,代码来源:MyITemplate.cs


示例3: DrawKenGrid

        private void DrawKenGrid(Grid kenGrid)
        {
            container.Controls.Clear();

            Table tbl = new Table();
            container.Controls.Add(tbl);

            for (int i = 0; i < kenGrid.Dimension; i++)
            {
                TableRow row = new TableRow();
                tbl.Rows.Add(row);

                for (int j = 0; j < kenGrid.Dimension; j++)
                {
                    CellViewModel cellView = new CellViewModel(kenGrid.CellMatrix[i, j]);

                    TableCell cell = new TableCell();
                    DefineBorder(cell, cellView);
                    row.Cells.Add(cell);

                    KenCell kenCell = (KenCell)LoadControl("KenCell.ascx");
                    kenCell.ID = "kencell-" + i.ToString() + "-" + j.ToString();
                    kenCell.Cell = cellView;

                    cell.Controls.Add(kenCell);
                }
            }
        }
开发者ID:pedul,项目名称:KenKen,代码行数:28,代码来源:KenGrid.ascx.cs


示例4: AddToTable

        /// <summary>
        /// Add the error/warning message to the table
        /// </summary>
        /// <param name="url">URL of origin of the message</param>
        /// <param name="type">Error or warning</param>
        /// <param name="line">Last Line</param>
        /// <param name="column">Last Column</param>
        /// <param name="msg">Additional error/warning message</param>
        private void AddToTable(string url, string type, string line, string column, string msg)
        {
            var tRow = new TableRow();

            var tCellUrl = new TableCell();
            tCellUrl.Text = "<a href='" + url + "' target='_blank'>" + url + "</a>";
            tRow.Cells.Add(tCellUrl);

            var tCellType = new TableCell();
            tCellType.Text = type;
            tRow.Cells.Add(tCellType);

            var tCellLine = new TableCell();
            tCellLine.Text = line;
            tRow.Cells.Add(tCellLine);

            var tCellClmn = new TableCell();
            tCellClmn.Text = column;
            tRow.Cells.Add(tCellClmn);

            var tCellMsg = new TableCell();
            tCellMsg.Text = msg;
            tRow.Cells.Add(tCellMsg);

            w3Table.Rows.Add(tRow);
        }
开发者ID:Peacefield,项目名称:DotsolutionsWebsiteTester,代码行数:34,代码来源:CodeQuality.aspx.cs


示例5: showProjects

        private void showProjects()
        {
            List<ProjectInfo> projects = ProjectInfo.getUserProjects(Membership.GetUser(false).UserName, activeProjectsOnly);

            TableRow row = new TableRow();
            Label cell = new Label();

            cell.Text = "<div class = \"tblProjects\">";

            int i = 0;
            foreach (ProjectInfo info in projects)
            {
                if (i != 2)
                {
                    cell.Text = "<img src=\"images\\tools_white.png\"/><a href =\"section.aspx?id=" + info.ProjectID + "\"><div class = projName>" + info.Name + "</div></a>"
                    + "<div class = projDesc>" + info.Description + "</div>";
                    TableCell cell1 = new TableCell();
                    cell1.Text = cell.Text.ToString();
                    row.Cells.Add(cell1);
                    i++;
                }
                else
                {
                    cell.Text = "<img src=\"images\\tools_white.png\"/><a href =\"section.aspx?id=" + info.ProjectID + "\"><div class = projName>" + info.Name + "</div></a>"
                     + "<div class = projDesc>" + info.Description + "</div></tr><tr>";
                    TableCell cell1 = new TableCell();
                    cell1.Text = cell.Text.ToString();
                    row.Cells.Add(cell1);
                    i = 0;
                }
            }
            tblProjects.Rows.Add(row);
            cell.Text += "</div>";
        }
开发者ID:BadBoyJH,项目名称:NURacing,代码行数:34,代码来源:index.aspx.cs


示例6: BuildOptionRow

 private TableRow BuildOptionRow(string label, Control optionControl, string comment, string controlComment)
 {
     TableRow row = new TableRow();
     TableCell cell = new TableCell();
     TableCell cell2 = new TableCell();
     cell.Wrap = false;
     if (label != null)
     {
         Label child = new Label();
         child.ControlStyle.Font.Bold = true;
         child.Text = label;
         child.CssClass = "AnswerTextRender";//JJ
         cell.Controls.Add(child);
         cell.VerticalAlign = VerticalAlign.Top;
         if (comment != null)
         {
             cell.Controls.Add(new LiteralControl("<br />" + comment));
         }
         row.Cells.Add(cell);
     }
     else
     {
         cell2.ColumnSpan = 2;
     }
     cell2.Controls.Add(optionControl);
     if (controlComment != null)
     {
         cell2.Controls.Add(new LiteralControl("<br />" + controlComment));
     }
     row.Cells.Add(cell2);
     return row;
 }
开发者ID:ChrisNelsonPE,项目名称:surveyproject_main_public,代码行数:32,代码来源:FreeTextBoxAnswerItem.cs


示例7: AddThemeToTable

        private void AddThemeToTable(TblThemes theme, int i)
        {
            var row = new TableRow {ID = theme.ID.ToString()};
            var number = new TableCell {Text = i.ToString(), HorizontalAlign = HorizontalAlign.Center};
            var name = new TableCell {Text = theme.Name, HorizontalAlign = HorizontalAlign.Center};
            var type = new TableCell {Text = theme.IsControl.ToString(), HorizontalAlign = HorizontalAlign.Center};

            var pageOrder = new TableCell {HorizontalAlign = HorizontalAlign.Center};
            pageOrder.Controls.Add(GetPageOrderDropDownList(theme.PageOrderRef));

            var pageCountToShow = new TableCell {HorizontalAlign = HorizontalAlign.Center};
            pageCountToShow.Controls.Add(GetPageCountToShowDropDownList(theme));

            var maxCountToSubmit = new TableCell {HorizontalAlign = HorizontalAlign.Center};
            maxCountToSubmit.Controls.Add(GetMaxCountToSubmitDropDownList(theme.MaxCountToSubmit));

            var themePages = new TableCell();
            themePages.Controls.Add(new HyperLink
            {
                Text = "Pages",
                NavigateUrl = ServerModel.Forms.BuildRedirectUrl(new ThemePagesController
                                                                     {
                    BackUrl = string.Empty,
                    ThemeId = theme.ID
                })
            });

            row.Cells.AddRange(new[] { number, name, type, pageOrder, pageCountToShow, maxCountToSubmit, themePages });
            CourseBehaviorTable.Rows.Add(row);

        }
开发者ID:supermuk,项目名称:iudico,代码行数:31,代码来源:CourseBehaviorController.cs


示例8: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            var temp = new Movie();
            var movies = temp.getAll();

            Table table = new Table();
            foreach (int moid in movies.Keys) {
                TableRow row = new TableRow();

                TableCell imageCell = new TableCell();
                Image image = new Image();
                image.ImageUrl = movies[moid].read("imgurl").ToString();

                HtmlAnchor anchor = new HtmlAnchor();
                anchor.HRef = "/show_movie.aspx?moid=" + movies[moid].id;
                anchor.Controls.Add(image);

                imageCell.Controls.Add(anchor);
                row.Controls.Add(imageCell);

                TableCell cell = new TableCell();
                cell.VerticalAlign = VerticalAlign.Top;

                cell.Text = "<h2>" + movies[moid].read("title").ToString() + "</h2>";
                row.Controls.Add(cell);
                cell.Text += (movies[moid].read("description").ToString().Length > 1024) ? movies[moid].read("description").ToString().Substring(0, 1024) + "..." : movies[moid].read("description").ToString();
                row.Controls.Add(cell);

                table.Controls.Add(row);
            }
            PlaceHolder1.Controls.Add(table);
        }
开发者ID:cmol,项目名称:cinemaxxx,代码行数:32,代码来源:show_movies.aspx.cs


示例9: GetAdministrationInterface

 /// <summary>
 /// Must create and return the control 
 /// that will show the administration interface
 /// If none is available returns null
 /// </summary>
 public Control GetAdministrationInterface(Style controlStyle)
 {
     this._adminTable = new Table();
     this._adminTable.ControlStyle.CopyFrom(controlStyle);
     this._adminTable.Width = Unit.Percentage(100);
     TableCell cell = new TableCell();
     TableRow row = new TableRow();
     cell.ColumnSpan = 2;
     cell.Text = ResourceManager.GetString("NSurveySecurityAddinDescription", this.LanguageCode);
     row.Cells.Add(cell);
     this._adminTable.Rows.Add(row);
     cell = new TableCell();
     row = new TableRow();
     CheckBox child = new CheckBox();
     child.Checked = new Surveys().NSurveyAllowsMultipleSubmissions(this.SurveyId);
     Label label = new Label();
     label.ControlStyle.Font.Bold = true;
     label.Text = ResourceManager.GetString("MultipleSubmissionsLabel", this.LanguageCode);
     cell.Width = Unit.Percentage(50);
     cell.Controls.Add(label);
     row.Cells.Add(cell);
     cell = new TableCell();
     child.CheckedChanged += new EventHandler(this.OnCheckBoxChange);
     child.AutoPostBack = true;
     cell.Controls.Add(child);
     Unit.Percentage(50);
     row.Cells.Add(cell);
     this._adminTable.Rows.Add(row);
     return this._adminTable;
 }
开发者ID:ChrisNelsonPE,项目名称:surveyproject_main_public,代码行数:35,代码来源:NSurveyContextSecurityAddIn.cs


示例10: AddTableCell

        public static TableCell AddTableCell(TableRow tableRow,
            string value, SourceTextType fieldType, string toolTip = "")
        {
            TableCell tableCell1 = new TableCell();

            string valueToPrint = "NA";

            switch (fieldType)
            {
                case SourceTextType.DateTime:
                    if (!string.IsNullOrWhiteSpace(value))
                    {
                        DateTime createdDate = DateTime.Now;
                        createdDate = DateTime.Parse(value);

                        valueToPrint = SCBasics.AuditTrail.Utils.DateTimeUtil.TimeAgo(createdDate);
                    }
                    else
                    {
                        valueToPrint = "NA";
                    }
                    break;
                case SourceTextType.Text:
                    valueToPrint = !string.IsNullOrWhiteSpace(value) ? value : "NA";
                    break;
                default:
                    valueToPrint = !string.IsNullOrWhiteSpace(value) ? value : "NA";
                    break;
            }

            tableCell1.Text = valueToPrint;
            tableCell1.ToolTip = toolTip;
            tableRow.Cells.Add(tableCell1);
            return tableCell1;
        }
开发者ID:shunterer,项目名称:Sitecore-Audit-Trail,代码行数:35,代码来源:UIControlUtil.cs


示例11: fillButtons

        protected void fillButtons()
        {
            // Create the row
            // We are going to use one row only
            TableRow row = new TableRow();

            // Create the cells
            TableHeaderCell addRecordsCell = new TableHeaderCell();
            TableHeaderCell addTimeOffCell = new TableHeaderCell();
            TableHeaderCell addIncomeCell = new TableHeaderCell();
            TableHeaderCell addDocumentCell = new TableHeaderCell();

            // Add the links to cells Text
            addRecordsCell.Text = @"<a class='btn btn-warning btn-employee' href='EmployeeAddRecord.aspx?id="+employee.Id+"'><i class='icon-pencil icon-white'></i> Add a Record</a>";
            addTimeOffCell.Text = @"<a class='btn btn-warning btn-employee' href='EmployeeAddTimeOff.aspx?id=" + employee.Id + "'><i class='icon-calendar icon-white'></i> Add a Time Off</a>";
            addIncomeCell.Text = @"<a class='btn btn-warning btn-employee' href='EmployeeAddIncome.aspx?id=" + employee.Id + "'><i class='icon-plus icon-white'></i> Add an Income</a>";
            addDocumentCell.Text = @"<a class='btn btn-warning btn-employee' href='EmployeeAddDocument.aspx?id=" + employee.Id + "'><i class='icon-folder-open icon-white'></i> Add a Document</a>";

            // Add the cells to the row
            row.Cells.Add(addRecordsCell);
            row.Cells.Add(addTimeOffCell);
            row.Cells.Add(addIncomeCell);
            row.Cells.Add(addDocumentCell);

            // Add the row to the table
            ButtonsTable.Rows.Add(row);

            // Add the bootstrap table class to the table
            ButtonsTable.CssClass = "table centerTD no-border-table buttons-table";
        }
开发者ID:hlj1013,项目名称:HR-System,代码行数:30,代码来源:EmployeeView.aspx.cs


示例12: Button2_Click

        private void Button2_Click(object sender, System.EventArgs e)
        {
            Table1.Rows.Clear();
            OlapQueue q=OlapQueue.Instance;

            for(int i=0;i<q.Count;i++)
            {
                TableRow row=new TableRow();
                Table1.Rows.Add(row);

                TableCell cell;
                cell=new TableCell();
                row.Cells.Add(cell);
                cell.Text=q[i].ID.ToString();

                cell=new TableCell();
                row.Cells.Add(cell);
                cell.Text=q[i].Report.Name;

                cell=new TableCell();
                row.Cells.Add(cell);
                cell.Text=q[i].Status.ToString();

                cell=new TableCell();
                row.Cells.Add(cell);
                cell.Text=q[i].ExecutionStarted.ToLongTimeString();
            }
        }
开发者ID:GermanGlushkov,项目名称:FieldInformer,代码行数:28,代码来源:WebForm1.aspx.cs


示例13: BuildAlphaIndex

        private void BuildAlphaIndex()
        {
            string[] alphabet = new string[] { "A", "B", "C", "D", "E", "F", "G", "H",
            "I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};

            TableRow row = new TableRow();
            TableCell cell = null;
            LinkButton lkbtn = null;

            for (int i = 0; i < alphabet.Length - 1; i++)
            {
                cell = new TableCell();
                lkbtn = new LinkButton();
                lkbtn.Text = alphabet[i].ToString();
                lkbtn.Font.Underline = true;
                lkbtn.Font.Size = 15;
                lkbtn.PostBackUrl = string.Format("IndexView.aspx?Page={0}", alphabet[i].ToString());
                cell.Controls.Add(lkbtn);
                row.Cells.Add(cell);
                cell = new TableCell();
                cell.Text = string.Empty;
                row.Cells.Add(cell);
                cell = new TableCell();
                cell.Text = string.Empty;
                row.Cells.Add(cell);
            }

            tblAZ.Rows.Add(row);
        }
开发者ID:KevinTheMix,项目名称:CSharp-Wiki,代码行数:29,代码来源:IndexView.aspx.cs


示例14: BuildRow

 /// <summary>
 /// Build a row with the given control and style
 /// </summary>
 /// <param name="child"></param>
 /// <param name="rowStyle"></param>
 /// <param name="labelText"></param>
 /// <returns></returns>
 protected TableRow BuildRow(Control child, string labelText, Style rowStyle)
 {
     TableRow row = new TableRow();
     TableCell cell = new TableCell();
     if (labelText != null)
     {
         Label label = new Label();
         label.ControlStyle.Font.Bold = true;
         label.Text = labelText;
         cell.Controls.Add(label);
         cell.Wrap = false;
         if (child == null) cell.ColumnSpan = 2;
         cell.VerticalAlign = VerticalAlign.Top;
         row.Cells.Add(cell);
  
         cell = new TableCell();
     }
     else
     {
         cell.ColumnSpan = 2;
     }
     if (child != null)
     {
         cell.Controls.Add(child);
     }
     row.Cells.Add(cell);
     row.ControlStyle.CopyFrom(rowStyle); //CSS .addinsLayout
     return row;
 }
开发者ID:ChrisNelsonPE,项目名称:surveyproject_main_public,代码行数:36,代码来源:EntryQuotaSecurityAddIn.cs


示例15: upload_button_click

        protected void upload_button_click(object sender, EventArgs e)
        {
            if (file_upload_control.HasFile)
            {
                try
                {
                    UploadedFile uf = new UploadedFile(file_upload_control.PostedFile);

                    foreach (PropertyInfo info in uf.GetType().GetProperties())
                    {
                        TableRow row = new TableRow();

                        TableCell[] cells = new TableCell[] {new TableCell(),new TableCell(),new TableCell()};
                        cells[0].Controls.Add(new LiteralControl(info.PropertyType.ToString()));
                        cells[1].Controls.Add(new LiteralControl(info.Name));
                        cells[2].Controls.Add(new LiteralControl(info.GetValue(uf).ToString()));
                        row.Cells.AddRange(cells);

                        file_upload_details_table.Rows.Add(row);
                    }

                    status_label.Text = "Status: OK!";
                }
                catch (Exception ex)
                {
                    status_label.Text = "Status: The file could not be uploaded. The following error occured: " + ex.Message;
                }
            }
        }
开发者ID:ThijsVredenbregt,项目名称:applab7,代码行数:29,代码来源:Default.aspx.cs


示例16: CreateChildControls

        protected override void CreateChildControls()
        {
            PopupBGIButton ok = new PopupBGIButton();
            ok.Text = GetButton("OK");
            ok.Name = "OK";
            ok.CssClass += " " + "ajax__htmleditor_popup_confirmbutton ";

            PopupBGIButton cancel = new PopupBGIButton();
            cancel.Text = GetButton("Cancel");
            cancel.Name = "Cancel";
            cancel.CssClass += " " + "ajax__htmleditor_popup_confirmbutton";

            Table table = new Table();
            table.Attributes.Add("border", "0");
            table.Attributes.Add("cellspacing", "0");
            table.Attributes.Add("cellpadding", "0");
            table.Style["width"] = "100%";

            TableRow row = new TableRow();
            table.Rows.Add(row);
            TableCell cell = new TableCell();
            row.Cells.Add(cell);
            cell.HorizontalAlign = HorizontalAlign.Right;
            cell.Controls.Add(ok);
            cell.Controls.Add(cancel);
            Content.Add(table);

            RegisteredHandlers.Add(new RegisteredField("OK", ok));
            RegisteredHandlers.Add(new RegisteredField("Cancel", cancel));
            base.CreateChildControls();
        }
开发者ID:sumutcan,项目名称:WTWP-Ticket-Booking,代码行数:31,代码来源:OkCancelAttachedTemplatePopup.cs


示例17: BuildMenu

        /// <summary>
        /// BuildMenu builds the top-level menu.  It is called from the OnDataBinding method as well
        /// as from <see cref="CreateChildControls"/>.  It has code to check if the top-level menu should be
        /// laid out horizontally or vertically.
        /// </summary>
        protected virtual void BuildMenu()
        {
            // iterate through the Items
            Table menu = new Table();
            menu.Attributes.Add("id", this.ClientID);

            menu.Width = new Unit("100%");
            //menu.Height = new Unit("100%");
            menu.CellPadding = 0;
            menu.CellSpacing = 0;
           
            // Iterate through the top-level menu's menuitems, and add a <td> tag for each menuItem
            for (int ix = 0; ix < this.items.Count; ix++)
            {
                MainMenuItem mainMenu = this.items[ix];

                TableRow tr = new TableRow();

                BuildMainItems(tr, mainMenu, ix);
                
                menu.Controls.Add(tr);

                if (mainMenu.SubItems.Count > 0)
                {
                    TableRow tr2 = new TableRow();
                    BuildSubItems(tr2, mainMenu,ix);
                    menu.Controls.Add(tr2);
                }
            }

            Controls.Add(menu);
        }
开发者ID:jojozhuang,项目名称:Projects,代码行数:37,代码来源:LeftMenu.cs


示例18: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     // Connect to the database.
     using (SqlConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings[_connectionStringName].ToString()))
     {
         // Read from the database.
         var cmd = new SqlCommand(string.Format("SELECT {0} FROM {1}", string.Join(",", _columns), _databaseName), cn);
         cn.Open();
         // Add an HTML table row for each database record.
         using (SqlDataReader rdr = cmd.ExecuteReader())
         {
             while (rdr.Read())
             {
                 var row = new TableRow();
                 for (int column = 0; column < _columns.Length; ++column)
                 {
                     var cell = new TableCell();
                     cell.Text = rdr[column].ToString();
                     row.Cells.Add(cell);
                 }
                 Table1.Rows.Add(row);
             }
         }
     }
 }
开发者ID:alfredherr,项目名称:manage-a-web-app-windows,代码行数:25,代码来源:Customers.aspx.cs


示例19: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            ctrlСклад.MasterViewName = Склад.Views.СкладL.Name;
            ctrlСклад.MasterTypeName = typeof(Склад).AssemblyQualifiedName;
            ctrlСклад.PropertyToShow = "Название";

            if (Session["storagepk"] != null)
            {
                var ds = (SQLDataService)DataServiceProvider.DataService;
                var автомашиныPseudoDetail = new PseudoDetail<Автомашина, Поступление>
                    (Поступление.Views.ПоступлениеE,
                    Information.ExtractPropertyPath<Поступление>(p => p.Автомашина));
                var ВладельцыАвтомашинИзПоступленийНаСклад = ds.Query<Автомашина>(Автомашина.Views.АвтомашинаE)
                    .Where(a => автомашиныPseudoDetail.Any(s => s.Склад.__PrimaryKey.ToString() == ctrlСклад.SelectedMasterPK)).ToList()
                    .Select(c => new { Фамилия = c.ВладелецАвтомашины.Фамилия }).Distinct();
                //var ВладельцыАвтомашин = АвтомашиныИзПоступленийНаСклад.Select(o => o.ВладелецАвтомашины.Фамилия).ToList();

                foreach (var Владелец in ВладельцыАвтомашинИзПоступленийНаСклад)
                {
                    TableRow tr = new TableRow();
                    TableCell tc = new TableCell() { Text = Владелец.Фамилия };
                    tr.Cells.Add(tc);
                    TableВладельцы.Rows.Add(tr);
                }
            }

            //WolvOwners.LimitFunction = LinqToLcs.GetLcs(АвтомашиныИзПоступленийНаСклад.Expression,
            //Автомашина.Views.АвтомашинаE).LimitFunction;
            //WolvOwners.LimitFunction = LinqToLcs.GetLcs(ВладельцыАвтомашин.ToList().AsQueryable().Expression,
            //Человек.Views.ЧеловекE).LimitFunction;
        }
开发者ID:Flexberry,项目名称:FlexberryStudy2015,代码行数:31,代码来源:ZaprosVladelcyPrivozyashhieNaSklad.aspx.cs


示例20: BuildStudentProspectTable

        public static void BuildStudentProspectTable(Table table, string userId)
        {
            GroupService service = new GroupService();
            DataTable dtProspects = service.GetProspectiveStudentsData(userId);
            DataTable dtGroups = service.GetSupervisorOfData(userId);

            for (int i = 0; i < dtProspects.Rows.Count; i++)
            {
                DropDownList ddlGroupList = new DropDownList();
                ddlGroupList.DataSource = dtGroups;
                ddlGroupList.DataTextField = "GroupName";
                ddlGroupList.DataValueField = "GroupId";
                ddlGroupList.DataBind();
                ddlGroupList.Items.Insert(0, "Add a group");

                string name = dtProspects.Rows[i].ItemArray[0].ToString();
                string id = dtProspects.Rows[i].ItemArray[1].ToString();

                LinkButton b = new LinkButton();
                b.Text = name;
                b.CommandArgument = id;
                b.CommandName = name;

                TableRow row = new TableRow();
                TableCell cellProspects = new TableCell();
                TableCell cellGroups = new TableCell();

                cellProspects.Controls.Add(b);
                cellGroups.Controls.Add(ddlGroupList);
                row.Cells.Add(cellProspects);
                row.Cells.Add(cellGroups);
                table.Rows.Add(row);
            }
        }
开发者ID:JamesWClark,项目名称:Strikethrough,代码行数:34,代码来源:GroupFactory.cs



注:本文中的System.Web.UI.WebControls.TableRow类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebControls.TextBox类代码示例发布时间:2022-05-26
下一篇:
C# WebControls.TableItemStyle类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap