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?
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.
Yes, the "directions" column is the issue, but it is the height of the individual cells. You see there are ten lines available for customer directions to a business unit in our cell-based app that runs on UNIX. In our new Windows interface, we need to keep the ten lines as ten cells in a grid. Stacking them in the manor shown delivers a view the customers are used to. The issue at hand is this grid is for view only. If a user want to edit the data we pop-up a model form for editing. Since this is for view only, we want to try to present only the "directions" cells that have data and make the grid look cleaner and get more data visible for the screen area available. I tried using hidden, but it just hides the cell in place. I have worked at setting the empty cells to a height of 0 or 1, but cannot find the correct properties. I hope this explains the issue better.
Bob