Hi , anybody can tell me ,
Q: Can i use inherted third party control which is a UserControl as embeded cell editor ? Detail , the actual scenario is that i have a composite usercontrol which is composed of a TextBox and Button controls, this control fulfil my custom need,then i make a inherited control which inherit my usercontrol and now want to make this inherited control as embeded cell editor , it could be possible or not .
Q: Can i use UserControl as embededable cell editor ?
Thanks
Regards Salahuddin
Mike Saltzman"]You can even add a custom dropdown to a grid cell and drop down any control you want very easily by using a DropDownEditorButton.
Can you elaborate on that a little bit please? I am dealing with a scenario where I need to embed a custom editor in the grid that displays a tree. The user should have the ability to expand the tree and select a value.
We already have the tree control and I did set it up as an editor for the column. It comes up but when I select a value in the tree nothing happens. Does my control need to implement an interface so it can work with the grid? It currently extends from UltraTextEditor.
Cheers,Matei
Hi Salahuddin,
You cannot simply embed any control in a grid cell. You would need to create an editor, which is not a trivial task and can take several days if not weeks even for an experienced developer. I would not recommend attempting this unless you own a subscription with source code so you can use the existing editors as examples or unless you have no other choice.
If you just need a button and text in a cell, then the grid can already do this. All you have to do is set the Style on the column to EditorButton.
If you need something more complex than that, then you can probably get what you want using the existing editors with editor buttons. You can even add a custom dropdown to a grid cell and drop down any control you want very easily by using a DropDownEditorButton.