Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在自定义窗口中禁用 MVC Devexpress Gridview 特定列隐藏或设置不允许在自定义窗口中隐藏的最小列数
将MVCxColumn.Settings.AllowDragDrop属性设置为“ DefaultBoolean.False ”以防止列移入/移出自定义窗口:
@Html.DevExpress().GridView( settings => { ... settings.Columns.Add(...).Settings.AllowDragDrop = DefaultBoolean.False; }).Bind(Model).GetHtml()