Class DataFormDisplayOptionsAttribute
Provides a attribute that lets you specify the display settings for a data field.
Inheritance
Namespace: Syncfusion.Maui.DataForm
Assembly: Syncfusion.Maui.DataForm.dll
Syntax
public sealed class DataFormDisplayOptionsAttribute : Attribute
Constructors
DataFormDisplayOptionsAttribute()
Initializes a new instance of the DataFormDisplayOptionsAttribute class.
Declaration
public DataFormDisplayOptionsAttribute()
Properties
ColumnSpan
Gets or sets the number of column that this item spans to increase item's width.
Declaration
public int ColumnSpan { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is |
Remarks
Data form editors are arranged in rows, use the RowOrder property to specify the row order where the editor should be displayed.
Examples
The below examples shows, how to set the ColumnSpan property of DataFormDisplayOptionsAttribute in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
DataObject="{Binding AccountInfo}">
<dataForm:SfDataForm.BindingContext>
<local:DataFormViewModel/>
</dataForm:SfDataForm.BindingContext>
</dataForm:SfDataForm>
ItemsOrderInRow
Gets or sets the editor’s position in a row.
Declaration
public int ItemsOrderInRow { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is |
Remarks
This property is applicable to only when the ColumnCount is greater than 1. The items on the data form are arranged in layout rows. Use the RowOrder property to specify the number of the layout row where the item should be displayed. Use the ItemsOrderInRow property to display multiple editors in a single row. Two items with the same RowOrder property value are placed in this row according to their ItemOrderInRow property values.
Examples
The below examples shows, how to set the ItemsOrderInRow property of DataFormDisplayOptionsAttribute in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
DataObject="{Binding AccountInfo}">
<dataForm:SfDataForm.BindingContext>
<local:DataFormViewModel/>
</dataForm:SfDataForm.BindingContext>
</dataForm:SfDataForm>
RowOrder
Gets or sets the row order of the editor in the data form.
Declaration
public int RowOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is |
Remarks
Items on the data form are arranged in layout rows and columns. Use the RowOrder property to specify the number of the layout row where the item should be displayed.
Examples
The below examples shows, how to set the RowOrder property of DataFormDisplayOptionsAttribute in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
DataObject="{Binding AccountInfo}">
<dataForm:SfDataForm.BindingContext>
<local:DataFormViewModel/>
</dataForm:SfDataForm.BindingContext>
</dataForm:SfDataForm>>
RowSpan
Gets or sets the number of rows that this item spans which is used to increase item's height.
Declaration
public int RowSpan { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is |
Remarks
Data form editors are arranged in rows, use the RowOrder property to specify the row order where the editor should be displayed.
Examples
The below examples shows, how to set the RowSpan property of DataFormDisplayOptionsAttribute in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
DataObject="{Binding AccountInfo}">
<dataForm:SfDataForm.BindingContext>
<local:DataFormViewModel/>
</dataForm:SfDataForm.BindingContext>
</dataForm:SfDataForm>
ShowLabel
Gets or sets a value indicating whether to show the label to the DataForm editor.
Declaration
public bool ShowLabel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
Examples
The below examples shows, how to set the ShowLabel property of DataFormDisplayOptionsAttribute in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
DataObject="{Binding AccountInfo}">
<dataForm:SfDataForm.BindingContext>
<local:DataFormViewModel/>
</dataForm:SfDataForm.BindingContext>
</dataForm:SfDataForm>
ValidMessage
Gets or sets a string which will get displayed when user enters valid value for the data field as success message.
Declaration
public string ValidMessage { get; set; }
Property Value
Type |
---|
System.String |
Examples
The below examples shows, how to set the ValidMessage property of DataFormDisplayOptionsAttribute in the SfDataForm.