A few days ago I set CellMultiLine = True and RowSizing = AutoFree in InitializeLayout and it worked great; however, I was working on it again today and it is not AutoSizing all of the rows, but it is for some of them. Is there a property I could have changed that would conflict with this feature? I even tried putting e.Row.PerformAutoSize in the InitializeRow event and that did not help. I also tried looping through the rows and PerformAutoSize each one and still no luck.
You know what, I just checked one property for the column and found where it is occurring: when I set a MinWidth for the column. But if I do not set this, or just set its width, it works as it should, any ideas, or is this a bug?
Any assistance you could provide would be greatly appreciated!~Kelly
Hi Kelly,
I'm racking my brain here, but I can't come up with any reason why MinWidth would affect the height of the row. Unless the MinWidth is actually affecting the Width of the columns - which make cause the row height to be smaller, since the column can show more text horizontally.But you should still be able to see all of the text in the cell if you autosize the row.
Are you saying that some of your rows have text that is being clipped?
Is it possible you are changing the values of some of the cell after the AutoSizing is performed?
Hi Mike,
Yes, the text is clipped when I set MinWidth. I tried performing PerformAutoSize in the InitializeRow event as well as several other locations after the grid is filled just out of curiosity and there is still no change in the height of the cell. I do not change any of the cell values after the grid is filled.
I will send you a screenshot in a PM since it contains confidential information. - actually I cannot find a link to send a PM, would you be able to send me your email address?
Thanks,Kelly
A screenshot won't really help here. You should try to duplicate this issue in a small sample project and Submit an incident to Infragistics Developer Support so they can check it out.
It's possible there is something we are both missing here, but this sounds like a bug to me.
That explains it.
InitializeRow must be firing for some rows before you set CellMultiline and thus those rows are not sized correctly. I always try to do everything layout-related inside the InitializeLayout event.
I think I found where this is occurring. I realized that I set the CellMultiLine property for the column after the grid is filled instead of in InitializeLayout. When I do it that way, some of the rows seem to work fine, but others do not (they show the elipsis). But if I set that property for the column in InitializeLayout, it works as expected.
I have attached a sample project to show the behavior.I guess it is not really a bug then? Let me know if you still think I should submit an incident report.Thanks,Kelly