DortGen
DortGen

Reputation: 412

How to set column width of AspXGridView - EditForm?

Has anybody got any idea for my purpose? How can we set the column width of AspXGridView's EditForm?

In editor properties there is only a Width property that is usefull when grid is table mode. But i want to change column width of one EditForm column.

Thanks.

Upvotes: 0

Views: 6792

Answers (2)

Mikhail
Mikhail

Reputation: 9300

If you use the “PopupEditForm” mode, perform the following steps:

1) Specify the required EditForm’s Width via the ASPxGridView.SettingsEditing.PopupEditFormWidth property;

2) Organize a custom EditForm’s layout via the EditFormTemplate http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/EditFormTemplate.aspx;

3) Specify the required Width for a particular column and bind the column’s editor via two-way binding expression http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/TwoWayBinding.aspx.

Upvotes: 0

Filip
Filip

Reputation: 3347

I think you can't control column width directly. You can use edit form template and use html table to organize controls.
Look at this link for additional info.

Upvotes: 2

Related Questions