GridViewDataColumn.EditFormSettings Property
In This Article
Gets the settings of the edit cell which is displayed within the Edit Form and corresponds to the current data column.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public GridColumnEditFormSettings EditFormSettings { get; }
#Property Value
Type | Description |
---|---|
Grid |
A Grid |
#Remarks
The EditFormSettings property provides access to the settings that allow the edit cell’s caption, visibility, layout and position within the Edit Form to be specified. The style settings used to paint the edit cell that corresponds to the current data column can be accessed via the GridViewDataColumn.EditCellStyle property.
#Example
protected void chkMemoLocation_CheckedChanged(object sender, EventArgs e) {
GridViewDataColumn column = grid.Columns["Notes"] as GridViewDataColumn;
if(column == null) return;
if(chkMemoLocation.Checked) {
column.EditFormSettings.VisibleIndex = 100;
column.EditFormSettings.ColumnSpan = 3;
} else {
column.EditFormSettings.VisibleIndex = 2;
column.EditFormSettings.ColumnSpan = 1;
}
if(grid.IsEditing) {
int prevIndex = grid.EditingRowVisibleIndex;
grid.CancelEdit();
grid.StartEdit(prevIndex < 0 ? 0 : prevIndex);
}
}
For a full example, see Grid - Popup Edit Form demo.
See Also