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
22
votes
2 answers

How to change the backcolor of a listview subitem using its own value

How can I programmatically change the back color of a single cell in a listview using its own value? The values in the ColorFlag Column Came from the database. Here is my code: foreach(DataRow dr in _dataTbl.Rows) { _markOW =…
Rye
  • 2,273
  • 9
  • 34
  • 43
9
votes
4 answers

In-place editing of a subitem in a TListView

I have a ListView with 3 columns and would like to edit the third column, aka Subitem[1]. If I set ListView.ReadOnly to False, it allows me to edit the caption of the selected item. Is there an easy way to do the same thing for the subitem? I would…
Aaron
  • 896
  • 3
  • 11
  • 22
7
votes
1 answer

Window size of edit control/combobox is not properly adjusted when using MoveWindow or SetWindowPos

INTRODUCTION AND RELEVANT INFORMATION: I am trying to implement listview control with editable items and subitems. Instead of regular listview look, items and subitems should have edit control, checkbox or combo box. I am using raw WinAPI and C++. I…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
6
votes
1 answer

TListView: VCL loses the order of columns if you add a column

I'm trying to add a column between existing columns in a TListView. Therefor I add the new column at the end and move it by setting it`s index to the designated value. This works, until adding another new column. What I did: Add the column at last…
torno
  • 466
  • 12
  • 25
5
votes
2 answers

Images in ListView subitem

How to add an image instead of text for a listview subitem? Like http://i44.tinypic.com/2mzz6s6.png ? here is normally how I add a string: ListViewItem item = new…
dnclem
  • 2,818
  • 15
  • 46
  • 64
5
votes
1 answer

Navigation drawer menu item with titles and sub titles

I have a navigation drawer prototype. we have heading and subheading in the same. am using menu group to include the titles. 1) just want to add sub title or help text for the navigation drawer. 2) want to customise the icon size to fit the whole…
Alok Rajasukumaran
  • 381
  • 1
  • 5
  • 20
5
votes
2 answers

C# - Update a subitem within a listview

I am working on an application where users enter information that is then added to a listview. That works great. The only problem is, the application connects to a web site that updates the "Points" field in that listview for each account. I am…
user
  • 16,429
  • 28
  • 80
  • 97
4
votes
1 answer

TListView: Subitem order after adding a new column between existing during runtime

If you add a new column between existing columns during runtime, the subitem indices are not like I'ld assume. e.g. after adding a new column between the second and third column the columns/subitems look like this: colums[0] | colums[1] | (new)…
torno
  • 466
  • 12
  • 25
4
votes
1 answer

Get SubItem value when double-clicking on Item in ListView

I have a listview with 2 columns, and when the I double click on an item, i need to display the value of its corresponding sub item in a TextBox control. How can I do this? I searched Google, but it didn't return anything helpful, probably because…
anon271334
4
votes
0 answers

How to correctly add a subitem to a listview control in win32

I'm currently trying to create a listview control in Win32 and add items and subitems. I was able to create the listview and add headers and items. The LVM_INSERTITEM message is working totally fine and it shows the different lines. But when I try…
SvenPcr
  • 61
  • 3
4
votes
1 answer

c#: show tooltip on subitem

I have a listview, and in one of the columns (not the first) I want to display an error code. What I haven't been able to do is get the ToolTip to display. I have this.lstList.ShowItemToolTips = true; ... ListViewItem value =…
Thalia
  • 13,637
  • 22
  • 96
  • 190
3
votes
1 answer

How to enable/disable listview subitem editing

I've created a checked listview programmatically, with one of the columns being an editable textbox. I want to enable or disable the subitem on each row according to the state of the checkbox, but can't find a property or a way to access the…
Guy
  • 325
  • 1
  • 3
  • 18
3
votes
2 answers

Sitecore Sortorder vs Subitem Sorting

In Sitecore, I thought that sortorder always took precedence over subitem sorting. I was under the assumption that it doesn't matter what an item's subitem sorting was set to if one of it's children had a sortorder of 100 and the other had one of 0…
Teeknow
  • 1,015
  • 2
  • 17
  • 39
3
votes
1 answer

C# - How to get/set ListViewItem or ListViewItem.ListViewSubItem by key?

I have a listview with several items that are created dynamically, each has two subitems that are quantity and code after a query to the database should update the quantity, but to make the code more readable I would like to access subitems by the…
Leonardo
  • 119
  • 3
  • 10
3
votes
1 answer

Align the text of a Listview Column in Windows Forms C# to right without changing the header text alignment

I have a System Windows Forms ListView in C# 2008 (Net 2.0) on Win7 which has 4 columns and is in details mode with small icons, fullrowselection on, hideselection false, showtooltips true. The column No. 3 shall be as the only column aligned to…
feedwall
  • 1,473
  • 7
  • 28
  • 48
1
2 3 4 5 6 7