Questions tagged [subitem]

Use this tag for questions related to subitems, i.e. items that usually inside ListView(Items).

is used for questions related to the manipulation/insertion/deletion of the subitem, i.e. a collection of an item inside a ListView (for example).

96 questions
1
vote
1 answer

different colors for a LisrView sub items

can you help me find out how can I make my ListView sub items have different colors for each one? Like the first will be white, and second black and it iterate this colors for each new sub item. Can it be done? if yes, can you direct me on where to…
Yosi199
  • 1,745
  • 4
  • 22
  • 47
1
vote
1 answer

Add subItem to Listview

Now, I know how to add SubItems, but this time it's slightly different from my usual method. below is what I'm using to add items to my listview, however using this I cannot figure out how to add subitems. listView1.Items.Add(Path.GetFileName(f));
Lane will
  • 75
  • 9
1
vote
0 answers

how do you add subitems to a listView from a database

I have a database that stores the count of a tally and a name associated with that tally, I've gotten the list view to display the tally count but I can't figure out how to display the name as a sub item. Here is my code so far. public class…
1
vote
1 answer

How to add items to ObjectListView in C#

I recently tried to add a ObjectListView to my project instead of the normal ListView. But i can not add the Items or the SubItems to the ObjectListView. The ObjectListView is always empty when i try to fill it with this code: while (dr.Read()) …
Cortana
  • 189
  • 2
  • 14
1
vote
1 answer

How to edit a selected SubItem programmatically?

Does anyone know how can I edit a subitem on a listView? I've tried using this: ListView1.SelectedItems[0].SubItems[1].Text = "Hello?"; But that doesn't work. I get the error "InvalidArgument=Value of '1' is not valid for 'index'". I've got two…
Joey Morani
  • 25,431
  • 32
  • 84
  • 131
1
vote
1 answer

How to add a subitem to a listview without using custom adapter

In my listview i am gettinng a list of available of wi-fi with some data what i want is to display the array item[0] as a item and array item[2] as a subitem without using custom adapter and expendable listview Here is the code in which i am adding…
user3853169
  • 209
  • 3
  • 14
1
vote
2 answers

WPF Accessing subitems in a ListView/GridView

I'm attempting to access a listview subitem. I have to insert columns into this ListView/GridView dynamically as this program accesses multiple databases with different value types. If need be I can portion out the database searching into multiple…
feinrar
  • 13
  • 3
1
vote
1 answer

jquery accordian List submenu item can't display values from database in cakephp

i am using a jquery accordian for display a list with sub items. i have a category table and product table. i want to fetch these categoris and corresponding products to the list. in my controller i add the below code. …
SibinF
  • 385
  • 1
  • 7
  • 25
1
vote
3 answers

Dynamically adding subitems to ListView in Android

I am trying to dynamically add information to a ListView. The information I am adding consists of a "Device Name" (the main item) and "MAC Address" (the sub item). An example from online is below. Note: I want to replace Item 1 with a device 1's…
Daiwik Daarun
  • 3,804
  • 7
  • 33
  • 60
1
vote
1 answer

Getting subItems in my list view

In my list view for ITEM I get the title of the feed but I want to get the description, image and link in the SUBITEM in that list view. Can you help me? This is what I have: 1) The ListView in MainActivity ArrayAdapter adapter; adapter =…
Rick
  • 3,943
  • 6
  • 33
  • 45
1
vote
1 answer

Checking if a Subitem value has changed (MFC)

I was looking for a method through MSDN (more precisely in here: http://msdn.microsoft.com/en-us/library/vstudio/bb983759.aspx) which would indicate if a Subitem's value in a PropertyGrid was changed or not, but I couldn't find anything. Does this…
Mudkip
  • 373
  • 6
  • 27
1
vote
2 answers

Extract text from clicked submenu item of Menustrip

I've been dealing and looking for a way of extracting the text of any given subitem when clicked and write the text in textbox1. this is the code that I have so far, but it does not seem to work. Private Sub MenuStrip1_ItemClicked(ByVal sender As…
user2065407
  • 11
  • 1
  • 2
1
vote
1 answer

cannot convert from 'string' to 'System.Web.UI.WebControls.ListViewDataItem'

and also cannot add subitems to a ListView control in .net, for example in c# i have this…
gaponte69
  • 1,337
  • 3
  • 14
  • 21
1
vote
3 answers

How to add a Listview with SubItems

I would like to display the data in an array of string as the Subitems of the listview. How exactly could I do it?
Vaironl
  • 69
  • 1
  • 1
  • 4
1
vote
1 answer

add subitem to listview item after clicking an item

I am working on an android application that I like to do something like this picture below to a listview: as you can see, there's a custom adapter for a list view that generates a list out of one of my classes. I want to add a view like a…
Bardya Momeni
  • 53
  • 1
  • 8