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
3
votes
1 answer

Shifting the erroneous horizontal position of SubItemImages in a Delphi TListView?

In a Delphi TListView, is it possible to shift the erroneous horizontal position of SubItemImages, as they are drawn too far left? Something like this, for example (pseudo-code, which just shows the intention): x :=…
user1580348
  • 5,721
  • 4
  • 43
  • 105
3
votes
1 answer

Changing the colour of certain ListView columns

How can I change the colour of a specific column in a listview? string[] row = { appID[i], "Launch Game"}; // more data to add listView1.Items.Add(nameArray[i], i).SubItems.AddRange(row); listView1.ForeColor = System.Drawing.Color.Blue;
deepseapanda
  • 3,717
  • 8
  • 32
  • 39
2
votes
1 answer

How to create more than 1 check box in ListView object?

I am using a ListWiew which has checked property selected so it have a check box on every item in first column. Now, I want to have another check box on second column also, but can't find anything useful in the properties of my list view to have…
NewHelpNeeder
  • 693
  • 1
  • 10
  • 19
2
votes
1 answer

Access Cosmos Db JSON data using C# MVC

I am trying to display Cosmos db JSON Subitems using c# MVC Web application. But I am getting an error: Could not cast or convert from System.DateTime to WebApplication1.Models.Entry. JSON: "DataTypeId": 1, "IPaddress": "192.168.2.177", "id":…
Ana
  • 73
  • 8
2
votes
3 answers

increasing character limit of subitem in listview with C#

I was wondering if its possible to increase the character limit of listview's subitems text.. there is a limitation of 259 characters.. any ideas would be appreciated.. regards,
Desolator
  • 22,411
  • 20
  • 73
  • 96
2
votes
1 answer

Center subitem images in a TListView

Is it possible to fix the drawing of subitem images in a TListView so that they are not cut-off on the left hand side as shown in the image?
Pieter van Wyk
  • 2,316
  • 9
  • 48
  • 65
2
votes
1 answer

SubItems of ListView are not displayed in winforms

I am creating a winforms application in visual studio 2017, I am populating a ListView using a List> Examples of the data are: List> List> List> …
Omar AlMadani
  • 161
  • 2
  • 12
2
votes
2 answers

Changing the text Colour in a ListView Control ( Win32)

I have a List View Control that I have created with Win32 C++ I am adding sub items using ListView_SetItem This just Text and the List View is in Report Mode. I want to change the colour of the text for a particular sub Item . Can I do this?…
Rahul
  • 2,194
  • 4
  • 31
  • 46
2
votes
3 answers

Adding Subitem to a listview in Android

I currently have a listview which contains a couple of strings. These are called from a string array in strings.xml Taxi Me Barrys Taxi Boom…
Oli
  • 999
  • 2
  • 9
  • 16
2
votes
1 answer

how to find subitems of a row in cell array matlab?

I have cell array that is as follow: S{1} = [10,20,30,40,50]; S{2} = [10,20,40,50]; S{3} = [10,50,510]; S{4} = [10,20,70,40,60]; S{5} = [20,40]; and, i need to find rows of cell that are subitem of: [10,20,30,40,50,60] for above example result is…
hojjat.mi
  • 1,414
  • 16
  • 22
2
votes
1 answer

how to add color to sub item in listview? c#

I tried to add text color to any sub item in the listview by the index that the method get from the array for (int i = 0; i < sizes.Length; ++i) { if (sizes[i] == 1) { …
Nadav
  • 65
  • 9
2
votes
3 answers

Multiple text items in List view item

Does anyone know of the correct way to add multiple sections of text to one listview item when using Windows 10 universal apps in C#? Items.subitems doesn't seem to work. Say my two string I want to display in a single list item are stored in... …
Xylynx
  • 267
  • 1
  • 3
  • 11
2
votes
1 answer

Android ListView: Removing Sub item dependent upon the item

In the following activity in my app (multiplication quiz game) I have displayed a list of questions and answers that the user has given. At present it displays the answer in red if it was wrong and green if correct. The sub item of the list will…
user3287264
2
votes
1 answer

Select subitem in Listview and change value

I have a listview in the "details" mode that looks something like: ################# Name # Property ################# #Itm1 # Subitm1 #Itm2 # Subitm2 ################# Very simple, but the problem I am running into is I cannot select "Subitm1"…
Joshua Gilman
  • 1,174
  • 4
  • 16
  • 32
2
votes
3 answers

onclicklistener for subitems of listview

I have a listview and each item of the lisview is a linearlayout. Each one of the linearlayouts contains 3 textviews. How do i set a onclicklistener for those textviews? i tried this: TextView…