为什么我的 DevExpress v14.1 没有 GridViewEdittingMode 组件?
Why my DevExpress v14.1 doesn't have the GridViewEdittingMode component?
根据DevExpress官方文档:https://documentation.devexpress.com/#AspNet/DevExpressWebGridViewEditingModeEnumtopic,包含GridViewEditingMode组件的程序集应该是DevExpress.Web.v14.1.dll。但是,我试图将它添加到我的参考中,它仍然说 GridViewEditingMode 不存在。我的 DevExpress.Web.v14.1.dll 的哈希码是 SHA256 CFDE95612BA9D4A771DD0236D95A8A1881BE983DC72985205E36134CA37D1075。更糟的是,我的电脑里没有工程转换器,DevExpress也不再提供v14.1试用版了
有没有人知道如何使 GridViewEditingMode 组件在基于 DevExpress v14.1 的项目中可用?
看起来您遇到了这一重大变化 (Some classes related to DevExpress ASP.NET controls have been moved to the DevExpress.Web namespace)。因此,实现 GridViewEditingMode 枚举的命名空间从 DevExpress.Web.ASPxGridView 更改为 DevExpress.Web。以下代码应该适合您。
var grid = Html.DevExpress().GridView(settings =>
{
settings.Name = "GridView";
// code
settings.SettingsEditing.Mode = DevExpress.Web.ASPxGridView.GridViewEditingMode.EditFormAndDisplayRow;
// code
});
根据DevExpress官方文档:https://documentation.devexpress.com/#AspNet/DevExpressWebGridViewEditingModeEnumtopic,包含GridViewEditingMode组件的程序集应该是DevExpress.Web.v14.1.dll。但是,我试图将它添加到我的参考中,它仍然说 GridViewEditingMode 不存在。我的 DevExpress.Web.v14.1.dll 的哈希码是 SHA256 CFDE95612BA9D4A771DD0236D95A8A1881BE983DC72985205E36134CA37D1075。更糟的是,我的电脑里没有工程转换器,DevExpress也不再提供v14.1试用版了
有没有人知道如何使 GridViewEditingMode 组件在基于 DevExpress v14.1 的项目中可用?
看起来您遇到了这一重大变化 (Some classes related to DevExpress ASP.NET controls have been moved to the DevExpress.Web namespace)。因此,实现 GridViewEditingMode 枚举的命名空间从 DevExpress.Web.ASPxGridView 更改为 DevExpress.Web。以下代码应该适合您。
var grid = Html.DevExpress().GridView(settings =>
{
settings.Name = "GridView";
// code
settings.SettingsEditing.Mode = DevExpress.Web.ASPxGridView.GridViewEditingMode.EditFormAndDisplayRow;
// code
});