怎么在ultrawebgrid控件中的某一列中加入DropDownList控件?

 

在UltraWebGrid1_InitializeRow事件中加入以下代码

 Infragistics.WebUI.UltraWebGrid.UltraGridColumn col=grid.Columns.FromKey("送货状态");
col.CellStyle.BackColor =Color.LightCyan;
col.AllowUpdate=Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;
col.Type=Infragistics.WebUI.UltraWebGrid.ColumnType.DropDownList;
Infragistics.WebUI.UltraWebGrid.ValueList vl=new Infragistics.WebUI.UltraWebGrid.ValueList();
vl.DataSource=Desay.Web.EC.Business.Stock.ManageOrder.GetStatus();
vl.DisplayMember="Status";
vl.ValueMember="Id";
vl.DataBind();
col.ValueList=vl;

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/lee576/archive/2007/12/11/1929160.aspx

 

posted @ 2010-09-08 13:16  peterlee  阅读(338)  评论(0)    收藏  举报