foreach (DataRow dR in dtCommitmentRowSource.Rows) { row = new TableRow(); ddl = new AjaxControlToolkit.ComboBox(); ddl.Visible = true; ddl.RenderMode = AjaxControlToolkit.ComboBoxRenderMode.Block; //1st Column cell = new TableCell(); cell.CssClass = "tdVerticalHeader"; cell.Text = string.Format("{0} Code", dR["LevelName"]); cell.HorizontalAlign = HorizontalAlign.Left; row.Cells.Add(cell); //2nd Column ddl.CssClass = "WindowStyle"; ddl.ID = dR["LevelName"].ToString(); ddl.DataSource = c.getCOACodesByCOAStructure(Convert.ToInt32(dR["RecordID"])); ddl.DataTextField = "Code"; ddl.DataValueField = "RecordID"; ddl.AutoCompleteMode = AjaxControlToolkit.ComboBoxAutoCompleteMode.SuggestAppend; ddl.AutoPostBack = true; ddl.DataBind(); cell = new TableCell(); cell.Width = new Unit(100, UnitType.Pixel); cell.CssClass = "tdsLevelTxs"; cell.Controls.Add(ddl); row.Cells.Add(cell); //3rd Column cell = new TableCell(); cell.CssClass = "tdsLevelTxs"; cell.Text = "Code Desc Here"; row.Cells.Add(cell); tbSubCommitment.Rows.Add(row); row = new TableRow(); cell = new TableCell(); cell.CssClass = "tdHorizentalEmpty"; row.Cells.Add(cell); tbSubCommitment.Rows.Add(row); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)