Skip to content

Use the Popup Container Editor as a cell editor in the WinForms Data Grid.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-grid-popupcontaineredit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Data Grid - How to use the Popup Container Editor

This example demonstrates how to:

  • Create and customize a Popup Container editor.
  • Assign the popup container editor to a grid column to display and edit cell values.
  • Handle the QueryPopUp event to pass the cell value to the editor in the dropdown.
    private void repositoryItemPopupContainerEdit1_QueryPopUp(object sender, CancelEventArgs e) {
        memoEdit1.EditValue = (sender as PopupContainerEdit).EditValue;
    }
  • Handle the QueryResultValue event to post the modified value back to the grid cell.
    private void repositoryItemPopupContainerEdit1_QueryResultValue(object sender, DevExpress.XtraEditors.Controls.QueryResultValueEventArgs e) {
        e.Value = memoEdit1.EditValue;
    }

Files to Review

Documentation