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 网格并使用自定义窗口功能从网格中动态添加删除列。现在我想将网格的宽度始终保持为页面的 100%,并且列应该在添加或从网格视图中删除时动态调整它们的宽度。
您可以使用 设置元素的 Width 属性Unit.Percentage()。例如:
Unit.Percentage()
column.Width= Unit.Percentage(50);