[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Collapse]HTML Editor
    Deployment of ASPxHtmlEditor
    Main Features
    Getting Started
    ASPxHtmlEditor Designer
   [Expand]Visual Elements
     How to: Set up a custom font dialog
     How to: Create a custom dialog to support different ordered list formats
     How to: Provide an end-user with a list of templates to insert into the editor
     How to: Create custom toolbar items
     How to: Implement a custom Preview popup
     How to: Use the ASPxHtmlEditor to edit the XtraReport content directly on the web page
     How to: Use the ASPxHtmlEditor in the ASPxGridView
     How to: Bind the HTML Property to a Database Field
     How to: Use the client PerformDataCallback method and the server CustomDataCallback event
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Use the ASPxHtmlEditor in the ASPxGridView

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E296.

This example illustrates how to use the ASPxHtmlEditor control in the ASPxGridView EditForm for editing text column data.

The ASPxHtmlEditor is defined within the ASPxGridView EditFormTemplate and bound with the "DescriptionHtml" column via the binding expression (the "Eval" method).

When using the "Eval" expression, it is necessary to capture the modified value/property and post it back to a datasource manually. See the Default.aspx.cs/Default.aspx.vb code behind source.

If you need to achieve the automatic Two-Way data binding functionality, use the "Bind" method instead of the "Eval" one.

In this case, the server-side code for retrieving the editor value (the ASPxHtmlEditor.Html property) and putting it into the e.NewValues dictionary is no longer required (except of cases described in the K18564: How to resolve issues with binding expressions #1 KB Article).

In addition, take a look at the online Two-Way Binding demo. It illustrates how to use different kinds of editors in a similar scenario.

Is this topic helpful?​​​​​​​