menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataFormItem - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataFormItem

    Represents the class that encapsulates the layout and editor setting for a data field appearing in SfDataForm. DataForm layouts caption labels, editors and validation error message based on the property settings of this class.

    Inheritance
    System.Object
    DataFormItemBase
    DataFormItem
    DataFormDateItem
    DataFormDropDownItem
    DataFormNumericItemBase
    DataFormPickerItem
    DataFormTextItemBase
    DataFormTimeItem
    Implements
    System.IDisposable
    Inherited Members
    DataFormItemBase.AutoFitLabel
    DataFormItemBase.ColumnSpan
    DataFormItemBase.Dispose()
    DataFormItemBase.Height
    DataFormItemBase.IsGroup
    DataFormItemBase.IsVisible
    DataFormItemBase.ItemManager
    DataFormItemBase.RowSpan
    DataFormItemBase.View
    Namespace: Syncfusion.Android.DataForm
    Assembly: Syncfusion.SfDataForm.Android.dll
    Syntax
    public class DataFormItem : DataFormItemBase, IDisposable

    Constructors

    DataFormItem()

    Initializes a new instance of the DataFormItem class.

    Declaration
    public DataFormItem()

    Properties

    Editor

    Gets or sets the editor names which denotes the renderer associated with editor.

    Declaration
    public string Editor { get; set; }
    Property Value
    Type
    System.String

    GroupName

    Gets or sets the group name of data field that is used to group properties in View.

    Declaration
    public string GroupName { get; set; }
    Property Value
    Type
    System.String

    ImageSource

    Gets or sets the image to show in place of label.

    Declaration
    public Bitmap ImageSource { get; set; }
    Property Value
    Type
    Android.Graphics.Bitmap

    InvalidMessage

    Gets a error message of DataFormItem in case of invalid data.

    Declaration
    public string InvalidMessage { get; }
    Property Value
    Type Description
    System.String

    The negative message.

    IsReadOnly

    Gets or sets the value that indicates whether to allow user to edit or not.

    Declaration
    public bool IsReadOnly { get; set; }
    Property Value
    Type
    System.Boolean

    IsValid

    Gets a value indicating whether this DataFormItem is valid.

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    System.Boolean

    true if is valid; otherwise, false.

    LabelPosition

    Gets or sets a value that denotes how to layout the label associated with editor for DataForm item. Label can be positioned either at the top or left of the editor.

    Declaration
    public LabelPosition LabelPosition { get; set; }
    Property Value
    Type
    LabelPosition

    LabelText

    Gets or sets the data field caption for the editor in View.

    Declaration
    public string LabelText { get; set; }
    Property Value
    Type
    System.String

    Name

    Gets or sets the name of the property.

    Declaration
    public string Name { get; set; }
    Property Value
    Type
    System.String

    Order

    Gets or sets the order of the editor in a view. Based on this value data fields will be arrange on order by SfDataForm.

    Declaration
    public int Order { get; set; }
    Property Value
    Type
    System.Int32

    PlaceHolderText

    Gets or sets the water mark for the editor to provide hint for users.

    Declaration
    public string PlaceHolderText { get; set; }
    Property Value
    Type
    System.String

    PropertyInfo

    Gets or the meta data of property.

    Declaration
    public PropertyDescriptor PropertyInfo { get; }
    Property Value
    Type
    System.ComponentModel.PropertyDescriptor

    ShowLabel

    Gets or sets a value that indicates whether to show label or not.

    Declaration
    public bool ShowLabel { get; set; }
    Property Value
    Type
    System.Boolean

    ValidMessage

    Gets a error message of DataFormItem in case of invalid data.

    Declaration
    public string ValidMessage { get; }
    Property Value
    Type Description
    System.String

    The positive message.

    Methods

    CanFocus()

    Returns a value that indicates whether the editor loaded for data field allows focus when navigating by keyboard Go action.

    Declaration
    protected override bool CanFocus()
    Returns
    Type Description
    System.Boolean

    Return true to set the focus to editor.

    Overrides
    DataFormItemBase.CanFocus()

    Dispose(Boolean)

    Disposes all the resources used by the DataFormItem class.

    Declaration
    protected override void Dispose(bool isDisposing)
    Parameters
    Type Name Description
    System.Boolean isDisposing

    Indicates whether the call is from Dispose method or from a finalizer.

    Overrides
    DataFormItemBase.Dispose(Boolean)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved