listview

Xml Attribute not showing up on ListBox - C#

I'm getting a null reference exception whenever it tries to add the packages titles info and other attributes but the attributes exist and the proper package is selected Heres the code: private void categorylist_listview_SelectionChanged(object sender, SelectionChangedEventArgs e) { XmlDocument LoadPackageList = new...

Adding DateTime to ListView?

How can I add a DateTime value along with 2 string values into a ListView? I've tried... String[] row = { Time.Value.ToString(), "Example Text", "Example Text"}; listView1.Items.AddRange(row); but I get conversion errors. ...

Save a ListView into Settings.settings?

How can I save a ListView with multicolumns into Settings.settings and load them upon running? I'm trying to save a ListView with 3 columns. How can I do that? ...

Setting does not get removed?

I have both a ListBox (AlarmBox) and a ListView (listView1). They both save into 2 different Properties.Settings (AlarmList and AlarmList2). Properties.Settings.Default.AlarmList.Remove(AlarmList.SelectedItem); Properties.Settings.Default.AlarmList2.Remove(listView1.SelectedItems); AlarmList.Items.RemoveAt(AlarmList.SelectedIndices[0]);...

How To Bind ListBoxItems to two ObservableCollection

Hello, everybody. My problem takes above one month of my time. Sorry for my English. I hope that i can explain the problem. I have a trouble while Binding ListView Control to two ObservableCollection. It's must be a simple thing, but I can't resolve it. My ListView has a Template like: <ListView Name="lstClients" DataContext="myObsColl...

listView.Items.Contains with DateTime/String?

How do I check if a listView contains a DateTime or String? I've tried if (!listView1.Items.Contains(SetAlarm.Value)) But it cannot convert System.DateTime to System.Windows.Forms.ListViewItem. ...

Problem with CSS(floating) in ListView ItemTemplate!

i am new in CSS and have a problem with styling ListView Control in ItemTemplate tag. my project language is rtl(persian) and i want to set the user image at the right and her/his infos to the left of the image. but this is the result: and here is the code for ListView: <asp:ListView ID="NokListView" runat="server" DataSourceID="Obje...

Custom .NET ComboBox control

Hey guys. I'm working in WinForms and trying to create a ComboBox control that hosts a ListView when it's dropped down. I'm using ToolStripDropDown and ToolStripControlHost to accomplish this. My problem is that i cannot display selected ListView item in the ComboBox when i set its DropDownStyle to DropDownList. Obviously this behavior...

ListView resize with user drag (VB.net)

I am converting my company's VB6 program over to VB.net and I have hit another stupid little roadblock. The old program had a ListView docked to the left side of the application screen. The user could place the cursor over the right portion of the ListView, the cursor would turn into the SizeWE arrows, then they could drag it, which wou...

How to force screen update for list view from non-UI thread (iPhone)

I have a background thread listening to network, using a callback to process and store data. When it's ready (UI) controller gets a sync Notification, requests data, updates list and refreshes screen ...except screen doesn't update - until user scrolls the screen! void aMessageArrivedCBack (const std::string text) { NSAutoreleasePoo...

properly resize wpf ListView's last column

How to properly handle listview's last column sizing in such a way that: listview does not display the ugly and unused 'extra' column (see picture 1, or here for example) the (actual) last column is stretched to fill the remaining space the horizontal scrollbar is not shown resizing in any direction leaves no artefacts (see below) I'...

Use Python to extract ListView items from another application

Hello all, I have an application with a ListView ('SysListView32') control, from which I would like to extract data. The control has 4 columns, only textual data. I have been playing around the following lines (found online somewhere): VALUE_LENGTH = 256 bufferlength_int=struct.pack('i', VALUE_LENGTH) count = win32gui.SendMessage(Targe...

Android: ListView non-enabled items draw invisible divider

If I have a ListView with two different kinds of items, enabled and disabled ones (meaning selectable and non-selectable), Android draws a small divider correctly between the enabled items, but not between disabled items. Instead it draws a transparent divider, which causes really bad design issues. This has already been discussed here (...

Copying data from a Winforms ListView

Is there a way to copy the text of the selected subitem from a ListView in .NET Winforms? ...

Android list view clarification quest

Hi guys, My scenario: -I'm using a list view in multiple choice mode to enable a user to delete several items he/she has checked, at once. -When the user clicks the delete button, i do the following: -get positions of checked items using: myList.getCheckedItemPositions(); -Get the items in this position and put them to a list - toDelet...

add 2-line caption in a TListView?

in a label i can add a new line like this Label.Caption:='First line'+#13#10+'SecondLine'; can this be done in a TListView? listItem:=listView.Items.Add; listItem.Caption:='First line'+#13#10+'SecondLine'; thanks ...

ListView in a HorizontalScrollView in Android

I have an ListView inside a HorizontalScrollView and it works perfectly fine, except for the initial load. I'm loading the data for the list view from a web service so I created a thread to do that. Once I have the data, I simply call _myListAdapter.notifyDataSetChanged(); and the data becomes visible in the ListView. But if the ListV...

Jump to listviewitem by keypress

Hi, I'm looking for any way - and I'm pretty sure there is a default way but don't now how - to select an item in a listview by pressing a key. And the possiblity to specifity the selection by intipping more than one letter. If I have this items in a list: Cat Country Tree By pressing "c" the item "Cat" should be selected. And by i...

Controlling width/layout in CListCtrl (Icon view)

Apart from the fact I still can't see why this class fills columns and scrolls horizontally, rather than filling rows and scrolling vertically, I'm confused how the width of items is controlled. I'm seeing quite a lot of padding (50-80 pixels) between the longest item in a column and the next column which means wasted space. Is it contr...

Nested Listview with insert, edit, delete

Nested Listview with insert, edit, delete for asp.net. Found many examples but not with insert, edit and delete ...