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
580
Cell height with empty cell
posted

I have an UltraGrid that I have used the column arranger on.  A png of the grid in designer view is attached.  There are ten lines of directions that can be displayed.  We would like to be able to either set the cell height to zero or something of that nature so if there is only one line of data or a line in the middle is empty, not all of the lines are displayed at runtime so the user does not have a lot of wasted space on the screen.  I tried using the hidden property, but it only hides the cell, but leaves the dead space taken.  Is what I need to do possible?

Parents
  • 71886
    Offline posted

    Hello,

    If you mean for the 'Directions' column from the screenshot to be downsized and to not extend to the width of the grid I believe that this is by default. A property which could cause this is the 'AutoFitStyle'. You could try turning it off(setting it to 'None'):

            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.AutoFitStyle = Infragistics.Win.UltraWinGrid.AutoFitStyle.None;
            }
    

     

    Please feel free to let me know if I misunderstood you or if you have any other questions.

Reply Children