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
  • 732,580
  • 175
  • 1,330
  • 1,459
user3722956
  • 59
  • 2
  • 13

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
StackUseR
  • 884
  • 1
  • 11
  • 40