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
2306
Searching for feature...
posted

Hello!

I have a grid with 2 columns, lets say COL_DATA and COL_NOTE. The COL_DATA column width is for exampe 1/4 of total row width  and the rest of the row width which is 3/4 is the width of COL_NOTE column. Suppose the user begins to write on the COL_NOTE column, and after pressing 50 buttons on the keynoard it reaches the end of the COL_NOTE colum, at this point the grid must grow the row height so the user continue to type, but the text is shown on "the second row". It must be something like AutoSizeEdit property of a column, but not expand outside the bounds of the cell, just grow the row...

Thank you

  • 37774
    posted

    I'm not sure that there's anything that you can do while the cell is being edited, but you could set the RowSizing to AutoFree and CellMultiline to True, then tell the row to automatically size itself when a cell has been updated, i.e.

     private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
    {
        e.Layout.Override.CellMultiLine = Infragistics.Win.DefaultableBoolean.True;
        e.Layout.Override.RowSizing = Infragistics.Win.UltraWinGrid.RowSizing.AutoFree;
    }

    private void ultraGrid1_AfterCellUpdate(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
    {
        e.Cell.Row.PerformAutoSize();
    }

    -Matt