Skip to main content
A newer version of this page is available. .

Data Binding

The ASPxHtmlEditor content can be bound to datasource fields by using the ASPxHtmlEditor.Html property. It can be useful if the editor is integrated into the ASPxGridView or Repeater.

ASPxHtmlEditor within ASPxGridView

<dx:ASPxGridView ID="ASPxGridView1" runat="server">
     <Templates>
          <EditForm>
              <dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" 
                  Html='<%# Eval("DescriptionHtml") %>'>
              </dx:ASPxHtmlEditor>
               ...
           </EditForm>
    </Templates>
</dx:ASPxGridView>

Note

View the Example To see this feature in action, refer to the following Code Central example: HtmlEditor in ASPxGridView