Back to Devexpress

OptionsColumnEditForm.RowSpan Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-optionscolumneditform-06d76b44.md

latest3.1 KB
Original Source

OptionsColumnEditForm.RowSpan Property

Gets or sets the number of layout rows the editor spans within an Edit Form. For the RowSpan property to be in effect, set the OptionsColumnEditForm.UseEditorColRowSpan property to false.

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(1)]
[XtraSerializableProperty]
public virtual int RowSpan { get; set; }
vb
<DefaultValue(1)>
<XtraSerializableProperty>
Public Overridable Property RowSpan As Integer

Property Value

TypeDefaultDescription
Int321

The number of rows the editor spans in an Edit Form.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to RowSpan
GridColumn

.OptionsEditForm .RowSpan

|

Remarks

Note

For the RowSpan and OptionsColumnEditForm.ColumnSpan properties to be in effect, ensure that the OptionsColumnEditForm.UseEditorColRowSpan property is set to false.

csharp
gridView1.OptionsBehavior.EditingMode = DevExpress.XtraGrid.Views.Grid.GridEditingMode.EditForm;
colProductID.OptionsEditForm.UseEditorColRowSpan = false;
colProductID.OptionsEditForm.ColumnSpan = 2;
colProductID.OptionsEditForm.RowSpan = 2;
vb
gridView1.OptionsBehavior.EditingMode = DevExpress.XtraGrid.Views.Grid.GridEditingMode.EditForm
colProductID.OptionsEditForm.UseEditorColRowSpan = False
colProductID.OptionsEditForm.ColumnSpan = 2
colProductID.OptionsEditForm.RowSpan = 2

See the OptionsColumnEditForm.ColumnSpan property to learn more.

See Also

ColumnSpan

UseEditorColRowSpan

OptionsColumnEditForm Class

OptionsColumnEditForm Members

DevExpress.XtraGrid.Columns Namespace