NetAdvantage 9.2
I have a secondary band with x number of childrows (each having a CheckEditor with text) as options for their respective parent row. Since the text for the check editor can vary in size I was hoping to be able to autosize the height for those rows where the CheckEditor text exceeds the cell size.
I've tried a few combinations of setting the autosize property along with performautoresize calls with no results. In general I was expecting this as my reading of the documentation leaves me with the impression that only editable editors (that return SupportsAutoSizeEdit = True) would support this behavior.
I was just wanting to check if there might not be some existing method/property or other factor that I was overlooking that might allow me to achieve the result I need before taking a trip to refactor-ville.
thanks
Hi,
I've already tried several different permutations of calling PerformAutoSize along with setting the RowSizing settings but from observation it seems to me to be tied strictly to the value of the cell itself (which in this case is an integer value) - not the text of the cell's Editor...at least not this particular editor.
When you auto-size a row in the grid, the grid asks the editor to return the size. So an UltraCheckEditor in a column with text in it should return the correct size including the text.
Did you try setting RowSizing, as I suggested?
Brian Fallon"] SupportsAutoSizeEdit actually has nothing to do with autosizing row heights (it handles the functionality whereby the in-place editor grows in size as needed during an edit-mode session).
SupportsAutoSizeEdit actually has nothing to do with autosizing row heights (it handles the functionality whereby the in-place editor grows in size as needed during an edit-mode session).
Ok.
Brian Fallon"] UltraGridColumn.CellMultiline is the property that controls whether the text within the cell is allowed to wrap to more than one line. I believe that even when that is set to true, the text will not wrap on an auto-size unless there are carriage return/line feed characters within the text, but I'm not certain about that.
UltraGridColumn.CellMultiline is the property that controls whether the text within the cell is allowed to wrap to more than one line. I believe that even when that is set to true, the text will not wrap on an auto-size unless there are carriage return/line feed characters within the text, but I'm not certain about that.
It probably wasn't too clear in my initial post but the Text that I wan't to be able to wrap/trigger auto size of the row height actually only lives in the CheckEditor itself. The underlying Cell value is an integer that stores the Value of the check Editor. Setting the CellMultiLine property along with strategically place calls to row.PerformAutoSize would work fine for me if the Cell value was the Text itself. What I'm looking for is a way to get the same behavior based on the CheckEditor's text - if that even exists.
You probably just need to set grid.DisplayLayout.Override.RowSizing to one of the options that includes the word "Free". Settings that do not include "Free" synchronize the height of every row - so it does not allow rows to have different heights. Setting RowSizing to Free will allow variable-height rows, so PerformAutoResize on one row will not affect the other rows.