ASP> NET devexpress网格高度的问题

时间:2012-11-14 04:16:05

标签: asp.net devexpress

我正在使用带有editform模板的devexpress gridview。我的问题是我在网格中有很多行,所以当我在页面底部编辑行时,编辑表单会在屏幕下方,我必须向下滚动才能看到整个编辑表单。有没有办法将此网格设置为自动高度,所以我不必向下滚动。即使我将其设为假,也始终显示垂直滚动条。

1 个答案:

答案 0 :(得分:1)

你可以使用PopUpEditForm,这样你就不必在屏幕上滚动它,它出现在屏幕中间。

您可以为网格使用PopupEditForm的以下设置

<SettingsEditing EditFormColumnCount="2" Mode="PopupEditForm" PopupEditFormWidth="800px"
PopupEditFormHeight="320px" PopupEditFormVerticalAlign="Below" PopupEditFormHorizontalAlign="Center"
PopupEditFormAllowResize="false" />

PopupEditFormWidth,PopupEditFormHeight - 您可以将其更改为您想要的任何大小,以便正确放置所有控件。

相关问题