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,
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.
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.
zenophite said: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.
I don't think that should not be the case. The entire contents of the editor should be considered.If not, it may be a bug.
Can you post a small sample project demonstrating this?
I assume that the issue is that your UltraCheckEditor in this case has multiple lines of text? Is it wrapping automatically or does it have line breaks in the text?