listview

XAML How to set IsEnabled on CheckBox in ListView with conditional.

I have a ListView with four columns ComputerName, IP, Status, UseMachine (String, String, String, Checkbox) I just want to disable the checkbox for the ListViewItem where Status = "Running" How can I do that? Here is the code I am using: <Window.Resources> <Style x:Key="ItemContStyle" TargetType="{x:Type ListViewItem}"> <Set...

How do I make the items in a ListView a different color?

I have a ListView full of ListViewItems. I want to emphasize some of them when a certain event fires, so I'm looking for a way to change the color of the listview to something other than black (red would be delightful). Is it possible to dynamically change the color of the items in the default winforms ListView? If no, is there some e...

setOnClickListener of a ListView not working

so im trying to set up a setOnClickListener for my ListView but its causing a crash in my program for some reason when i try.. im quite new to programming so when it comes to troubleshooting i cant really do anything sadly :( my code is below so any ideas on what could be wrong would be extremely helpful public class HomePageActivity ex...

Display android listview based upon listview selection

Hello, I have a listview say in this instance has the values: UK, USA, FRANCE These values are pulled from a static array held within my string.xml file. Additionally, within the string.xml is 3 arrays each referring to UK, USA and FRANCE & basically I want to load these arrays into a new listview depending on the users onclick event...

Get all IDs of items in a ListView

How can I get all IDs of items in a ListView with a Cursor adapter? ...

Android - Multiple lists not showing

Hi guys, I have two list, that need to be processed and displayed, I have used the following technique - I get the data from 2 sources, process it and have 2 Custom Adapters, that take the data and place it in the relvant View. However I only can view one list (the one at the top of in the view xml) - and not the other one, Can someo...

Using same control in both itemtemplate and edititemtemplate in listview

I have a listview where each row contains usercontrol. Usercontrol data remain same for both EditItemTemplate and ItemTemplate mode. Rather that instanciating the same usercontrol twice for both edit and item mode, is there anyway i can use the itemTemplate usercontrol instance in edititemtemplate? ...

Make ListView ignore rightclick totally

Hello, I'am just coding some global gesture handlers for a wpf application. For example I am supposed to use right click as a trigger to proceed UI. <Window.InputBindings> <MouseBinding MouseAction="RightClick" Command="NavigationCommands.NextPage"/> </Window.InputBindings> But now the problem appears that <ListBox/> consume...

android: styling ListView items from custom CursorAdapter

I have a custom CursorAdapter which I'm using to inflate a custom item layout and style accordingly, as shown in the code below. My issue is that sometimes the wrong style information is supplied even though the data coming from the DB is correct (so for the below example I'll get isEvent == true but it'll go on to style as if isEvent =...

how to pull strings from an array adapted listview for a clicked list item

ok so i have an array adapted listview (the array adapting is done in another class).. i just got the click listener working for the list but now i want set it up so that when i click an item it pulls the strings from the clicked item and piggybacks them on the intent to a new activity.. i figure im supposed to use intent.putextra howeve...

When I scroll a listview with a custom adapter too fast up and down, getView() starts behaving oddly. Why?

I have a listview with a custom arrayadapter that handles about 15 strings. The style of each row alternates (between labels and values for those labels--for example row 1 could be "email address" and row 2 would be the actual email address). I'm changing the style of each row to alternate like this in the arrayadapter's getView() method...

ListView Not Updating After Filtering

I have a ListView (with setTextFilterEnabled(true)) and a custom adapter (extends ArrayAdapter) which I update from the main UI thread whenever a new item is added/inserted. Everything works fine at first--new items show up in the list immediately. However this stops the moment I try to filter the list. Filtering works, but I do it once...

Stuck... need help.. Listview w/ Array Adapter

Ok, so I have this application that takes a adress strings (from values/xml) and parses it your current position) retuning a name, address and distance away. This is then picked up by an arrayadapter and put up on a listview. I cannot for the life of me get the list view to accept an onitemclick to start another activity, where I can ...

Hide items from a ListView control

I am using a listview to display some items.But sometimes based on condition I have to hide few items from the list.So how can I do this?I am using ASP.Net with c#. ...

WPF ListView with TreeView as ItemTemplate

Hi, I'm currently trying to create a ListView with a TreeView as ItemTemplate (a list of TreeViews). Furthermore, I need to bind a different XmlDataProvider on each one of them so they can each have a different XML source. I already know how to bind a XML source to a TreeView, but I don't know how to create a XMLDataProvider for each L...

ListViews with multiple item layouts

I have a ListView on my ListActivity and I'd like the rows of the ListView to be 1 of 3 different layouts. The first item in my list is always going to use layout A, the second item in my list is always going to use layout B, and all subsequent items are going to use layout C. Here is my getView function: @Override public View getView...

Trouble adding footer to ListView

Hi, I have a ListView that I'm trying to add a footer to. For some reason, it won't show up. My footer is defined in a separate XML layout called layout_footer. View v = getLayoutInflater().inflate(R.layout.layout_footer, getListView(), false); getListView().addFooterView(v); Here is the code in my ListActivity's onCreate method. ...

List View selection to start a new Activity

So I'm working with a list view trying to get specific activities to open when a certain item is selected. This is the code that I'm working with right now. I know its wrong but am not sure what I need to change it make it work. I think I need an intent and tried a few ideas but did not come up with much. Thanks. package table.periodic;...

How can I add a watermark or png or bitmap to the background of a CTreeCtrl?

I would like to have a background image for a list control (CTreeCtrl). Is this possible and how can I do it? (This is for a Visual Studio 2008 C++ mfc app) ...

How do you access the name, artist, album name off the music stored on the phone in android?

Much like the music app does i want to access the name of the song (not the name of the file) or the artist or album. For example, i want to populate a listview with the names of all the songs on the phone. ...