mitch stephens asked 2017-01-05 04:08:23 UTC
Firstly, thanks for getting the listview to work! Yah.
I see that the listviewItem has a property to AllowHtml which I assume means you can put some Html fragments in the text.
With that in mind, it would be ideal if we can somehow get the row to size a bit better, even if we have to adjust it in the code.
listView1.Items.Clear();
Here is a quick test of code loading into a listvie
var MyArray = Enum.GetValues(typeof(KnownColor));
foreach(KnownColor oKC in MyArray )
{
ListViewItem oItem = new ListViewItem("this is a long
block of Html text");
oItem.AllowHtml = true;
oItem.BackColor = System.Drawing.Color.FromKnownColor(oKC);
listView1.Items.Add(oItem);
}
http://screencast.com/t/FNFyTFpZ
Thanks in advance
Mitch
mitch stephens asked 2017-01-05 04:08:23 UTC
Firstly, thanks for getting the listview to work! Yah.
I see that the listviewItem has a property to AllowHtml which I assume means you can put some Html fragments in the text.
With that in mind, it would be ideal if we can somehow get the row to size a bit better, even if we have to adjust it in the code.
listView1.Items.Clear();
Here is a quick test of code loading into a listvie
var MyArray = Enum.GetValues(typeof(KnownColor));
foreach(KnownColor oKC in MyArray )
{
ListViewItem oItem = new ListViewItem("this is a long
block of Html text");
oItem.AllowHtml = true;
oItem.BackColor = System.Drawing.Color.FromKnownColor(oKC);
listView1.Items.Add(oItem);
}
http://screencast.com/t/FNFyTFpZ
Thanks in advance
Mitch