Is there a way to get around using CellProxy controls within the UltraGridRowEditTemplate? I need to use a custom control instead. Ideas?
thanks
-Ken
Hi Ken,
The CellProxy gives you a lot of built-in functionality. It picks up the appearances from the grid cell, for example. It also fires grid events when you edit and move out of the proxy.
If you want to use your own control, then you can certainly do that. Just put the control you want on the RowEditTemplate and bind that control to the RowEditTemplate itself. But you will lose a lot of that built-in stuff. So you will probably need to handle some events and manually set some properties on the replacement control.
Hi Mike,
I use custom control, i want to fire grid events when i edit and move out of the proxy.
How i should do to handle grid events and manually set soem properties on the replacement ?
thx:)
example for: I use RichTextBox bound filed in RowEditTemplate, how it fire events BeforeCellUpdate/AfterCellUpdate events ? how to add these events such as BeforeCellUpdate/AfterCellUpdate in RichTextBox ?
The question is ,the other cellproxy controll can fire BeforeCellUpdate/AfterCellUpdate ,but the RichTextBox can't fire these events. how i solve it?
Okay, I see. It wasn't clear to me that you were using your own control instead of the proxy controls.For a case like this, you would have to handle the events on the control itself.
So you could use the Validating event as the equivalent of BeforeCellUpdate and the Leave event would be the closest equivalent to AfterCellUpdate.
The aim i use own control is make text multiline.
Fora case, WinGrid cell can timely detect the change of cellproxy, but can't timely detect the change of other control.
how i make other control be detect timely?
Ok, thank u
If all you want is for the proxy control to be mulitline, then you might want to keep using the default cell proxy and just get the latest service release. We just recently fixed a bug where the proxy controls were not honoring the CellMultiline property of the grid column.