This example demonstrates how to use different data editors to display and edit cell values. The RichEditControl is used to edit RTF data (it is displayed within a popup window). The RepositoryItemRichTextEdit is used to display RTF data in data cells.
The CustomRowCellEditForEditing event is handled to assign a custom RTF editor to a column for in-place editing (to override the default column editor):
void gridView1_CustomRowCellEditForEditing(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e) {
if (e.Column.FieldName == "Rich")
e.RepositoryItem = riPopup;
}
- Form1.cs (VB: Form1.vb)
- RTFTestProvider.cs (VB: RTFTestProvider.vb)
(you will be redirected to DevExpress.com to submit your response)