日期:2014-05-18 浏览次数:20729 次
ASPxComboBox cbxRelation = new ASPxComboBox() { Width = 50, HorizontalAlign = HorizontalAlign.Center, CssClass = "dynLabel" }; var lstOp = new List<Tuple<string, string>>(); lstOp.Add(new Tuple<string, string>(">", ">")); lstOp.Add(new Tuple<string, string>("<", "<")); lstOp.Add(new Tuple<string, string>(">=", ">=")); lstOp.Add(new Tuple<string, string>("<=", "<=")); cell.Controls.Add(cbxRelation); cbxRelation.DataSource = lstOp; cbxRelation.TextField = "item2"; cbxRelation.ValueField = "item1"; cbxRelation.Enabled = true; cbxRelation.DataBind(); //cbxRelation.SelectedIndex = 3; ASPxTextBox drpNumber = new ASPxTextBox(); cell.Controls.Add(drpNumber);