This example creates a separate UserControl
with data editors for each popup window. The example handles the QueryPopup event to display the required UserControl
inside the PopupContainerControl.
private void OnDetailsEditQueryPopup(object sender, CancelEventArgs e) {
PopupContainerEdit edit = (PopupContainerEdit)sender;
if ((bool)gridView1.GetFocusedRowCellValue(colUseGrid)) {
edit.Properties.PopupControl.Controls.Add(gridEditor);
edit.Properties.PopupControl.Size = GridEditorSize;
} else {
edit.Properties.PopupControl.Controls.Add(simpleEditor);
edit.Properties.PopupControl.Size = SimpleEditorSize;
}
}
- Form1.cs (VB: Form1.vb)
- GridDetailEditor.cs (VB: GridDetailEditor.vb)
- SimpleDetailEditor.cs (VB: SimpleDetailEditor.vb)
(you will be redirected to DevExpress.com to submit your response)