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; }
(you will be redirected to DevExpress.com to submit your response)