I'm using a split container to display or hide a "comment history" list view element in a details view. One column contains created DateTime values and the other contains string values of comments a user of the application left.
I use the following cell formatting event code to enable text wrapping on my cells.
private void radListView1_CellFormatting(object sender, ListViewCellFormattingEventArgs e)
{
e.CellElement.TextWrap = true;
}
When the form loads everything, the cells look correct. Fully expanded and no clipped text. When I collapse the panel with the splitter buttons and "hide" the list view element and reopen the panel using the splitter buttons then the text is clipped. See attached files for reference of how I want them to look.
I've tried using RadListView.Refresh() in a dozen different event calls, RadListView.ListViewElement.Update(UpdateLayout) in a dozen different event calls, a synchronizationContext.Post() of the Refresh method in a dozen different event calls, and even direct formatting of the UI hierarchy elements Text Wrap property to true to no avail.
I have the following properties set as indicated in various tutorials for the ListView control:
- AllowArbitraryItemHeight & ...Width = True
- AutoSizeColumnsMode = Fill
- Dock = Fill
- ViewType = DetailsView
I have the following properties set for the parent SplitPanel control:
- Dock = Fill
For other relevant properties, I can confirm on a case by case basis since I'm not sure what I'm missing in my problem. Any guidance or advice is very appreciated.