Articles in this section

How to programmatically editing the DataForm in Xamarin.iOS (SfDataForm)

You can programmatically edit the SfDataForm using UpdateEditor method in Xamarin.Forms.

C#

By using DataObject property you can get the input values of properties in DataForm. You can change the value and update the editor to refresh the editor with updated value.

private void Button_TouchUpInside(object sender, EventArgs e)
        {
            var model = dataForm.DataObject as DataFormModel;
            model.Name = "John";
            dataForm.UpdateEditor("Name");
        }

Output

Programmatically editing the dataform

 

View Sample in GitHub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied