Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Changing the disposition of my listView.items in csharp smart device [modified]

Changing the disposition of my listView.items in csharp smart device [modified]

Scheduled Pinned Locked Moved C#
csharpcssdatabasecomalgorithms
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tunisien86
    wrote on last edited by
    #1

    Good Morning, I work with Visual Studio2008.I create a listview.When running,the items appear in the same ligne and very near to each other.How can arrange their disposition to see them everyone in a ligne? I do that but change nothing in my disposition:

    .
    .
    .
    if (dat.Tables["SQL Temp Table"].Rows.Count > 0)
    foreach (DataRow dataRow in dat.Tables[0].Rows)
    {
    ListViewItem item = new ListViewItem();
    item.Text = dataRow[0].ToString() + "- " + dataRow[1].ToString();
    listView1.Items.Add(item);
    // Set the view to show details.
    listView1.View = View.Details;
    // Allow the user to edit item text.
    listView1.LabelEdit = true;
    // Allow the user to rearrange columns.
    listView1.AllowColumnReorder = true;
    // Display check boxes.
    listView1.CheckBoxes = true;
    // Select the item and subitems when selection is made.
    listView1.FullRowSelect = true;
    // Display grid lines.
    listView1.GridLines = true;
    // Sort the items in the list in ascending order.
    listView1.Sorting = SortOrder.Ascending;
    .
    .
    . }

    This is the link of my image show of my problem http://yfrog.com/b6captureugwj [^] I wanna informe u that I work with Csharp smart device Thanks :) :((

    modified on Thursday, April 22, 2010 7:03 AM

    T 1 Reply Last reply
    0
    • T Tunisien86

      Good Morning, I work with Visual Studio2008.I create a listview.When running,the items appear in the same ligne and very near to each other.How can arrange their disposition to see them everyone in a ligne? I do that but change nothing in my disposition:

      .
      .
      .
      if (dat.Tables["SQL Temp Table"].Rows.Count > 0)
      foreach (DataRow dataRow in dat.Tables[0].Rows)
      {
      ListViewItem item = new ListViewItem();
      item.Text = dataRow[0].ToString() + "- " + dataRow[1].ToString();
      listView1.Items.Add(item);
      // Set the view to show details.
      listView1.View = View.Details;
      // Allow the user to edit item text.
      listView1.LabelEdit = true;
      // Allow the user to rearrange columns.
      listView1.AllowColumnReorder = true;
      // Display check boxes.
      listView1.CheckBoxes = true;
      // Select the item and subitems when selection is made.
      listView1.FullRowSelect = true;
      // Display grid lines.
      listView1.GridLines = true;
      // Sort the items in the list in ascending order.
      listView1.Sorting = SortOrder.Ascending;
      .
      .
      . }

      This is the link of my image show of my problem http://yfrog.com/b6captureugwj [^] I wanna informe u that I work with Csharp smart device Thanks :) :((

      modified on Thursday, April 22, 2010 7:03 AM

      T Offline
      T Offline
      Tunisien86
      wrote on last edited by
      #2

      Hello, Due to this link http://msdn.microsoft.com/en-us/library/ms229643.aspx[^],I solved my problem. Regards

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups