Skip to content

DevExpress-Examples/winforms-grid-display-edit-rtf-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Data Grid - Display rich text in data cells and edit cell values in a popup window

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;
}

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)