Infragistics WebGrid 中列的WebCombo应用

      grd1.Columns.FromKey("WebCombo").Type = Infragistics.WebUI.UltraWebGrid.ColumnType.DropDownList;
      grd1.Columns.FromKey(
"WebCombo").AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;
      
      
string strSQL = "Select Text,Value  from dbName  
      DataTable dt = SQL.ExecuteSQL_fill(strSQL);

      Infragistics.WebUI.UltraWebGrid.ValueList vl 
= new Infragistics.WebUI.UltraWebGrid.ValueList();
      vl.DataSource 
= dt;
      vl.DisplayMember 
= "Text";
      vl.ValueMember 
= "value";
      vl.DataBind();
      grd1.Columns.FromKey(
"WebCombo").ValueList = vl;
原文地址:https://www.cnblogs.com/wingfay/p/1084650.html