Skip to main content

Bind HTML Editor to Data

You can use the ASPxHtmlEditor.Html property to bind ASPxHtmlEditor content to datasource fields. This technique is useful if you integrate the editor into the ASPxGridView or asp: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>