Skip to main content
A newer version of this page is available. .

DataFormItem.ItemOrderInRow Property

Gets or sets the editor’s position in a row.

Namespace: DevExpress.XamarinForms.DataForm

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public int ItemOrderInRow { get; set; }

Property Value

Type Description
Int32

An integer that specifies the position of the editor in a row.

Remarks

You can place multiple editors in a single row and specify editor order. To do this, use the following properties of the data form’s item:

  • RowOrder - a row where the editor is located.
  • ItemOrderInRow - the editor’s position in a row.

If two items have the same RowOrder value, they are placed in the same row according to their ItemOrderInRow values.

An editor’s RowOrder and ItemOrderInRow values are relative to order values specified for other editors. For example, editors defined in the XAML markup below appears on the data form as follows:

<dxdf:DataFormView >
    <dxdf:DataFormTextItem FieldName="Address" 
                           RowOrder="0"/>
    <dxdf:DataFormTextItem FieldName="City" 
                           RowOrder="4" ItemOrderInRow="0" />
    <dxdf:DataFormTextItem FieldName="State" 
                           RowOrder="4" ItemOrderInRow="3" />
    <dxdf:DataFormNumericItem FieldName="Zip" 
                           RowOrder="4" ItemOrderInRow="5"/>
    <dxdf:DataFormNumericItem FieldName="Code" 
                              RowOrder="6" ItemOrderInRow="2" />
    <dxdf:DataFormMaskedItem FieldName="PhoneNumber" Keyboard="Telephone"
                             RowOrder="6" ItemOrderInRow="6"/>
    <dxdf:DataFormTextItem FieldName="Email" Keyboard="Email"
                           RowOrder="7"/>
</dxdf:DataFormView>
See Also