How to embed an UltraTextEditor in an UltraWinEditor Column? I have tried this:
I changed some properties to ultraTextEditor1 like backcolor, multiline, etc., but nothing apparent happens. What I want is just a multiline texteditor for a column. How can I do that? Thanks.
You do not need an editor for this. The grid cells and columns already have properties to allow you to assign colors. You can just set CellMultiline on the column to true.
Thank you Mike, but what I actually want is to put a dropdown buttom on the cell so the user can click on it and then show a bigger box to type text that can include CRLFs. How can I do that? Thanks again for your support.
Well, you might want to check out the AutoSizeEditor property on the cell first. This might work better for what you want.
If not, then you would have to make your own dropdown using Editors. This sounds intimidating, but it's really quite easy.
What you do is put an UltraTextEditor control on the form. Use the ButtonsRight collection and add a DropDownEditorButton. Set the Control property on the button to another control. In this case, you may want to use a multiline TextBox, or maybe an UltraTextEditor, or perhaps a UserControl with a textbox and some buttons on it. It's entirely up to you.
Then you set the EditorControl property of the grid to column to the UltraTextEditor and you have a custom dropdown.
You will probably want to handle some events of the UltraTextEditor to populate the grid cell when it closes up, and populate the dropdown when it drops down.
myColumn.EditorControl = wildcardTextEditor;
Finanlly I handle these events:
Ooops, something went wrong with the code indentantion after I posted my coment... sorry guys.