Hi,
i use the ultrawinlistview to show items with two subitems in tileview.
one of the subitems is a little bit longer so that it is cutted in the view and diplayed with ..
Now i have always 4 columns in view.
Is it possible to limit this (to 3) or let the items be display full??
Thanks for every idea!!
Torsten
Hi Torsten,
The columns able to be rendered is based on the size of the tiles. There is currently no direct property offered to limit the number of tiled column. So the best way to limit the number of columns of tiles to be displayed is to change the size of the tiles. You can just manually set it in the listView1.ViewSettingsTiles.ItemSize. By the nature of the ListView, all tiles must be the same size, and that size by default is derived from a mix of the ImageSize and the ItemSpacing. Both of which can also be changed in ViewSettingsTiles. Additionally while there is no property to limit the TileColumns to a specific count, you should be able to generate that affect, by initializing the ItemSize based on the Size of the ListView, then listen to the SizeChanged event of the ListView, and set the ItemSize accordingly.
Let me know if that helps,
Michael GermannSoftware Development Team LeadInfragistics
Hi Michael,
yes i set the
listview1.ViewSettingsTiles.ItemSize =new Size(Convert.ToInt32(0.9 * listview1.Width / 3, 100);
in order to get 3 Columns fit to 90% of Width.
This added in SizeChanged works fine!!
Thanks again for this idea!!