Browse by Tags
All Tags » ListView » Using Controls (RSS)
Sorry, but there are no more tags available to filter with.
-
|
Try code such as: ListViewItem item = new ListViewItem("NewItem"); item.SubItems.AddRange( new string[] { "SubItem1", "SubItem2" ) }; listView1.Items.Add( item ); listView1.Items.Add( new ListViewItem( new string[] { "item1"...
|
-
|
Make sure the ListView has focus when you set the Selected property. For example, if this code is in the click handler for a button, this button will have the focus, and the selection in the list will fail. Set the focus back to the list before you set...
|
-
|
Call the ListView.SelectedItems.Clear method. Contributed from George Shepherd's Windows Forms FAQ
|
-
|
To select the i-th item, you can use code such as // Make sure the listview has focus listView1.Focus(); listView1.Items[ i ].Selected = true; Contributed from George Shepherd's Windows Forms FAQ
|
-
|
I am trying to programmatically change the ForeColor and BackColor properties of subitems in a ListView. Why doesn't this work? Make sure the item's UseItemStyleForSubItems property is set to false. ListViewItem item1 = new ListViewItem( "item1"...
|
-
|
You create a class the implements the IComparer inteface. This interface has a single method that accepts two objects, and returns positive integers if the first object is larger than the second, negative integers if the first object is less than the...
|
-
|
See one of these Microsoft step-by-step articles: HOW TO: Sort a ListView Control by a Column in Visual Basic .NET (Article ID: 319399) HOW TO: Sort a ListView Control by a Column in Visual C# .NET (Article ID: 319401) Contributed from George Shepherd's...
|
-
|
The attached solution contains both C# and VB.NET projects. The solution use Interop with the LVM_GETSUBITEMRECT window's message to loop through each subitem's bounds rectangle until it finds the one that contains the specified mouse click point...
|
-
|
Does the ListView in Whidbey support a display like a threaded conversation, much like Outlook Express does in its news reader? I understand the Listview in Win32 can but has this been exposed in managed code yet? The ListView has a NumIndents property...
|