Changing the disposition of my listView.items in csharp smart device [modified]
-
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
-
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
Hello, Due to this link http://msdn.microsoft.com/en-us/library/ms229643.aspx[^],I solved my problem. Regards