Hi,
It's possible to embed two different Editors within the same WinGrid cell as shown in the join picture ?
Regards
Christian
Hi Christian,
The screen shot you have here doesn't really show a cell with two editors that I can see. I see a cell with two buttons in it. Is that what you want?
Buttons aren't editors, but if that's what you want, then this can be accomplished using a single editor. I posted a detailed explanation of how this works here.
Oh... just in case I misunderstood the question, I should probably mention that the answer to your question as written is no - it's not possible to put two editors into the same cell. A cell can only have one editor. You could, of course, use the ControlContainerEditor and thus the cell could contain a UserControl with multiple controls within it. But that's still only one editor and the cell only has one value.
Hi Mike,Yes, you're right, it's more two buttons in the same cell.I will follow the link and see the detailed explanation you have posted.
Thanks a lot
Hi Mike,
It works, I can see and use my two buttons in the cell.
Thanks
One more question : how to know which of the two buttons is pressed ?I recovered the e.context of the event but I do not find the information that would allow me to differentiate buttons.
Yep, that's the way to do it. :)
Hi again,
I found my response : with using the "Key" propertie from EditorButton and then handle the e.Button.Key in the event to differentiate them.