先在界面上放一个 WebNumericEdit
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
{
Infragistics.WebUI.UltraWebGrid.UltraGridColumn col = this.UltraWebGrid1.Columns.FromKey("num");
col.AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;
col.Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;
UltraWebGrid1.Columns.FromKey("num").EditorControlID = "WebNumericEdit1";
}
如此编辑单元格时显示的就是WebNumericEdit了,还有就是WebNumericEdit不用把visable设成false,绑定以后会自动不可见
WebNumericEdit集成
本文介绍如何在UltraWebGrid中集成WebNumericEdit控件,实现数值编辑功能。通过设置允许更新和自定义编辑器,使网格中的数值列可以使用WebNumericEdit进行编辑。
4561

被折叠的 条评论
为什么被折叠?



