Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
Making text portion of UltraTextEditor Read-Only as EditorControl
posted

I have what I thought was a fairly simple project.

An UltraGrid with 3 columns bound to a datatable.

Column Zero is a "plain" text column. Columns 1 & 2 are set with their EditorControl = an UltraTextEditor.

The UltraTextEditor has 1 Button in the ButtonsLeft collection & 2 Buttons in the ButtonsRight collection.

One of the buttons launches an OpenFileDialog which in turn returns a file path. I want to be able to display the file path string in the UltraTextEditor and thus in the resulting UltraGridCell but not let the user edit the string in the cell or the UltraTextEditor.

 I have everything working fine except I can't figure out how to set the cell & UltraTextEditor to be "read-only" and still allow the buttons in the UltraTextEditor to work.

Any suggestions would be greatly appreciated.