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
|
