HtmlContentControl.SetFieldValue(String, Object) Method
Sets the specified field’s value in the bound data object (HtmlContentControl.DataContext).
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
fieldName | String | The name of a target field in the bound data object. |
value | Object | The field’s new value. |
Remarks
Use the HtmlContentControl.GetFieldValue method to obtain a field’s value. You can also use methods of the bound data object (HtmlContentControl.DataContext) to get and set field values.
void clearButton_Click(object sender, EventArgs e) {
htmlContentControl1.SetFieldValue("UserName", string.Empty);
htmlContentControl1.Refresh();
}
Related API
Properties
Events
- HtmlContentControl.ShowingEditor
- HtmlContentControl.ShownEditor
- HtmlContentControl.ValidatingEditor
- HtmlContentControl.HiddenEditor
- HtmlContentControl.EditorValueChanged
- HtmlContentControl.EditorValueChanging
- HtmlContentControl.CustomEditor
- HtmlContentControl.CustomEditorForEditing
Methods
- HtmlContentControl.ShowEditor
- HtmlContentControl.CloseEditor
- HtmlContentControl.HideEditor
- HtmlContentControl.PostEditor
HtmlContentControl.SetFieldValue
- HtmlContentControl.GetFieldValue
See Also