Back to Devexpress

HtmlContentControl.ShowEditor(String) Method

windowsforms-devexpress-dot-xtraeditors-dot-htmlcontentcontrol-dot-showeditor-x28-system-dot-string-x29.md

latest4.0 KB
Original Source

HtmlContentControl.ShowEditor(String) Method

Activates an in-place editor bound to the specified field. This member is only in effect for in-place editors (Repository Items) added to the UI using the ‘input’ tag.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void ShowEditor(
    string fieldName
)
vb
Public Sub ShowEditor(
    fieldName As String
)

Parameters

NameTypeDescription
fieldNameString

The field name to which the in-place editor is bound in HTML markup.

|

Remarks

The value attribute of the ‘input’ tag’ allows you to bind an in-place editor to a field in the bound DataContext.

html
<input name="repositoryItemCalcEdit1" value="${Price}" class="editor"/>

The ShowEditor method allows you to activate an editor bound to a specific field.

csharp
htmlContentControl1.ShowEditor("Price");
vb
HtmlContentControl1.ShowEditor("Price")

See the following topic for information on how to access the active in-place editor, and the specifics of working with in-place editors: HtmlContentControl.ActiveEditor.

Properties

Events

Methods

See Also

HtmlContentControl Class

HtmlContentControl Members

DevExpress.XtraEditors Namespace