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
5250
CellMultiLine - only one cell not entire column
posted

Hi all

I am looking for a solution to set CellMultiLine with ScrollBars on only one cell
and not on the complete column.
I only found Column.CellMultiLine.

Thanks you a quick feedback.

Best regards
Frank Uray

  • 29105
    Offline posted

    Optionally, you can drag an UltraControlContainerEditor into the designer assign the editorConrol property to the ultratexteditor and set the cell's editorcomponent property to be the container.

    That way you can insure that only this editor will have multiline, scrollbars, etc and not the rest of the column.

       

      
                this.ultraControlContainerEditor1.EditingControl = ultraTextEditor1;
                ultraTextEditor1.Multiline = true;            
                ultraTextEditor1.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;            
                ultraTextEditor1.Scrollbars = ScrollBars.Both;            
                this.ultraGrid1.Rows[2].Cells[0].EditorComponent = ultraControlContainerEditor1;
     

    I attached a sample demonstrating this.

    CellMultilineTest.zip
  • 469350
    Offline posted

    Hi Frank,

    You could create an editor that supports scrollbars (presumably UltraTextEditor) and set it as the EditorComponent on the cell.

                UltraTextEditor te = new UltraTextEditor();
                this.Controls.Add(te);
                te.Scrollbars = System.Windows.Forms.ScrollBars.Horizontal;
                this.ultraGrid1.Rows[0].Cells["String 1"].EditorComponent = te;

    This works as long as CellMultiline is true for the column. I don't know if there's a way to do this just for one cell, though.