WebCombo in UltraWebGrid

在将升级到2008 vol2后,发现在2008 vol1版本中能正常使用的绑定功能,如果的Editable属性设为true话,那么在2008 vol2版本中将会抛出异常: has the Editable property set to True; therefore it must have equal DataTextField and DataValueField to be used as an editor in an .

经与开发人员联系,已确定在2008 vol2版本中,如果的DataValueField不与DataTextField相同的话,那么在中的不支持Editable=true。解决办法是用2008 vol1这个版本。

开发人员回信如下:

The does not support editable=true, when the DataValueField is different from the DataTextField.  This is done because the user only has the ability to type in a datatext value.  Since the user has no ability to ‘pair’ that with a DataValue the combo and grid have no way to store the user entered information.  If you need to have an editable field, you’ll need to set the DataValueField to match the DataTextField, otherwise, you’ll need to set the to Editable=false.  As an alternative, you can use the 2008 Volume 1 release of for ASP., where the allowed you to have the combination of properties you’re looking for.

标签:, , ,

相关日志