0

I need to show ListView items in TILE structure.. (like a clickable product view )

I am new to C#, therefore I couldn't find a property for changing ListView items column width. What is the ListView property to control item width?

listView1.Items.Clear();

while (rd.Read())
{
    //MessageBox.Show(rd.GetString(1));
    listView1.Items.Add(rd.GetString(1), 3);
}
marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
user3722956
  • 59
  • 2
  • 12

1 Answers1

0

If I dint get you wrong, you can change the column width something like this:

listView1.Columns[0].Width = something;
listView1.Columns[1].Width = something;
//so on

UPDATE :

Also these posts might be helpfull to you..

C# ListView Tile Width 100%?

C# ListView Column Width Auto

Community
  • 1
  • 1
Rahul
  • 876
  • 1
  • 9
  • 38