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
965
Hide Embedded Editor, not cell, in UltraWinGrid
posted

Hello,

I have an embedded editor in an UltraWinGrid and would like to know if it possible to hide the control.

I know I can set the cell's hidden value to false but this does not give me the desired affect as we have other functionality that no longer functions if the cell is hidden.

Below is an example piece of code I tried and while it does return to me the RenderingControl setting Visible = false has no affect. Also, we have no EditorControl on this form as it is not needed.

MyControlContainer myControlContainer = (MyControlContainer)ultraGridCellPlayerName.Editor;
MyControl myControl = (MyControl)myControlContainer.RenderingControl;
myControl.Visible = false;

Thanks in advance!

  • 469350
    Offline posted
    Anthony said:
    I know I can set the cell's hidden value to false but this does not give me the desired affect as we have other functionality that no longer functions if the cell is hidden.

    What other functionality are you referring to? 

  • 29105
    Verified Answer
    Offline posted

    Hello Anthony,

    Thank you for contacting Infragistics. One possible approach is to set the RenderingControl to a new instance of UltraTextEditor and make it look like a regular cell and/or make it look disabled as an example, rather than hiding it. Otherwise you can simply set the RenderingControl to null to remove it. Then you an reassign the editor back when needed.

    Under what condition do you require the rendering control to be hidden?

    If you don't have an editing control does that mean you don't allow editing of the cells?

    Let me know if you have any questions regarding this matter.

    Sincerely,

    Michael Di Filippo
    Associate Software Developer
    Infragistics, Inc.
    www.infragistics.com/support