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

How to get the text value from a subitem by index in C#

I have managed to get the index from the very first item in the column in my listview, but from that same line I want to get the text value from the second Column by using the index number. // Gets the item from the listview var item =…
0
votes
1 answer

C# Listview adding subitems

This is WinForms.. I have a for loop: private void MagicBtnClick(object sender, EventArgs e) { foreach (var auras in GetBuffs()) { var i = new ListViewItem(auras.ToString(), 0); listView1.Items.AddRange(new[] { i }); } } I want…
Anden
  • 53
  • 4
0
votes
1 answer

listview- System.ArgumentOutOfRangeException

I have a listview which has 7 columns. I want to add information on each column, but when it reaches the subitem 2 from the listView I get a System.ArgumentOutOfRangeException even though I have that subitem. Any idea why I get this error? I've…
0
votes
2 answers

C# listView check for repeated "fileName" entries

I am new to C# I just want to ask if is it possible to check against a SUBItem in a listview for repeated values before i do a ADD() method?? Lets say i have a listview and i can add/delete items I can have numerous items and subitems I would like…
N0rthSt4r
  • 5
  • 2
0
votes
1 answer

Adding subitem to ListView

ListView list = (ListView) findViewById(R.id.listView1); ArrayAdapter dataAdaptor = new ArrayAdapter (this, android.R.layout.simple_list_item_1, android.R.id.text1, cars); list.setAdapter(dataAdaptor); I write that codes for…
Enes
  • 301
  • 2
  • 7
  • 15
0
votes
1 answer

WPF ContextMenu lose its subitems

I've got a weird issue with WPF contextMenu regards updating the UI! Basically I create a hierarchical list named World. this list contain Countries and each country contain Cities. I bind this list to a label contextMenu. I create a button which…
Hass_NB
  • 13
  • 1
  • 4
0
votes
1 answer

OnClick on subItem of listview item in android

I have a listview. Its items has subitems. how can i get onclick event on subitems. The problem is that to get onclick even on subitem, i have to first get onclick on item, then sub item. How can i get onclick on subitem…
user5495260
0
votes
1 answer

Add subitems in listview selected item

I have a listview which has 5 columns and it is editable i used the hitinfo, when i double click the column 4 i the datepicker will appear in column 4 and display the value of it, Now i when i press the backspace i want to remove the value of the…
Daryl
  • 35
  • 1
  • 7
0
votes
1 answer

Dynamic listView Add x columns and x rows

This is my code: sql = "SELECT * FROM stock"; cmd = new SQLiteCommand(sql, mdb); SQLiteDataReader reader = cmd.ExecuteReader(); while (reader.Read()) { var_depot = reader["depot"].ToString(); ajouterlistview1 = new…
thedarkside
  • 11
  • 1
  • 7
0
votes
4 answers

C# Class with Sub-Items

Let's say, I want to have a main class with many sub-classes in it, the sub classes all with the same properties/methods, and I need to access them in many different other code parts. Example: Main class: Country Sub classes / Items: Germany,…
philn
  • 313
  • 2
  • 13
0
votes
0 answers

Adding subitem in listview using parse.com through parse query

i have displayed the data in listview from parse, the data that should be displayed is the username as item and bloodgroup of that user as the subitem. my app is displaying the item but i just don't know how to display the subitem. feild names from…
0
votes
1 answer

How to check a subitem in ContextMenuStrip

(cms.Items[6] as ToolStripMenuItem).DropDownItems.Add("Close program",null, new EventHandler(CloseProgram_Click)); (cms.Items[6] as ToolStripMenuItem).DropDownItems.Add("Show message", null, new EventHandler(ShowMessage_Click)); (cms.Items[6] as…
KayTran
  • 11
  • 4
0
votes
1 answer

How to access to a subitem of a MenuStrip

I have a MenuStrip which have 3 items. The second item, has 7 items (10 if separators are considered items). The point is, I want to access to the item number 7 (again, item number 10 if separators are considered items) so I do…
Drumnbass
  • 867
  • 1
  • 14
  • 35
0
votes
0 answers

Android - Adding Subitem to Sorted ListView

I have the following code for a ListView: private class CollegeItem { private double gpa; private int act; private int sat; private String name; private String location; private double score; private boolean match; private double…
RainbowJeremy
  • 63
  • 4
  • 13
0
votes
2 answers

C# How to add an item to a listview if the item exists but the subitem is different?

I have a listview with 2 columns, and I have a button on the form where the user enters and ip:port and then it adds the item to the listview when he clicks the button, pretty basic. What I want to do is:when the user clicks the button, I want to…
user2732954
  • 25
  • 2
  • 6