Custom Edit Control

Jan 16, 2009 at 6:37 PM

I want to present the user with a custom dialog when they click on a cell to take it into edit mode. What is the preferred approach for this? I have it working by adding code into the BeginningEdit event handler and using ShowDialog to show the edit dialog. This works ok except if the user clicks the column in the bottom "new row". Then I get an error "Dialog result can only be set after window is created and shown as dialog" when I dismiss the dialog on the custom window. So I've disabled the edit dialog if the row is "detached", which is a workaround but not great.

Thanks Andy