listview

WPF ListView has a one pixel border around the internal layout panel. How do I get rid of it?

I have a ListView that goes something like this: <ListView x:Name="SeriesListView" SnapsToDevicePixels="True" ItemsSource="{Binding Items}" BorderBrush="Transparent" BorderThickness="0" Padding="0" Margin="0" VerticalContentAlignment="Top" Background="Purple" LostFocus="ListView_LostFocus" > <L...

Android: notifyDataSetChanged() not updating listview after orientation change

Hello all, I have a semi-complicated problem and hoping that someone here will be able to help me. On a click event I create a thread and start a long-running operation based on this method. After the long-running task is completed, it does a callback to another method, which does a post to the handler: @Override public void content...

Open a Custom Dialog when clicking on a listview entry

I would like to open a custom dialog when someone clicks on a listview entry. That dialog will need to know the text that was clicked on in order to display additional information on that particular entry. Can anyone point me in the right direction on how to accomplish that? Thanks! ...

Use Lucene Hits to Filter DataSet Bound to ListView in WPF C#?

Alright so I've got a ListView with many items available to it any time (in virtualized mode). Right above the ListView is a text box that allows the user type in any search term and the ListView will be filtered live. The ListView is currently bound to a DataSet like this: SoundListView.DataContext = DS.Tables[0].DefaultView; The Dat...

Android: ListView, Last item - Show more...

Hi! I have an issues, I want to show 20 items in the list. But there is a catch: if the user scrolls down to the bottom of the list, there will be an item that says: "Show more items", and when the users click on it, more items will be added to the list. My question is how is poosible to have a last item, that has a different style a...

ListView: making the binding dynamic - How?

Hi all, I'm using a listview control to show a list of categories/subcategories <%# Eval("SubCategory1")%> When the user clicks the SubCategory1 link, the list view should fill up with the next subcategory, SubCategory2. The problem is off course that <%# Eval("SubCategory1")%> is hard-coded. I need it to change to <%# Eval("SubCat...

Reverting ASP.NET response header

've programmatically created a listview, for displaying images. When you click on the download the ItemCommand is fired, and the browser sends the user the image as a binary response, using the following: SPFile ImageIfile = spfolder.Files[ServerName]; byte[] bs = ImageIfile.OpenBinary(); string res = Page.Response.ContentType; Page.Res...

android image in listview that thinks "outside" the box

I want to have an ImageView that is part of a listview row item, but that appears to both in and out of the row. is this possible? if so, how? many thanks in advance... ...

ListView on android - When I textfilter, regardless of the result, it always performs the action of position 0

Hello, I am having issues with my ListView text filter. Here's the problem: ** Upon using the keyboard to search for an item in the list, when that item is clicked, it always takes them to the actions I have specified for position 0 as my list is separated based on positions. Each position launches a different activity. Is it poss...

Getting Stored Data from my Database into ListView.

package one.two; import java.util.ArrayList; import java.util.List; import android.app.ListActivity; import android.database.Cursor; import android.inputmethodservice.Keyboard.Row; import android.os.Bundle; import android.view.Menu; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; pu...

Using a ListAdapter to show database data

public class List_View extends ListActivity { private TextView toptext; private TextView bottomtext; DBAdapter db = new DBAdapter(this); public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.list); getData(); toptext = (TextView) findViewById(R.id.to...

How to fill a list view with the contents of Dictonary<string,List<String>> in C#

I've a Dictionary Dictionary<string, List<string>> SampleDict = new Dictionary<string, List<string>>(); I need to fill a listView with the contents of the Dictionary For example the "SampleDict" contains One A B C Two D E F The listView should be filled like S.No Item SubItem ...

Android ListView Footer View not being placed on the bottom of the screen

I'm sure that I'm missing something simple to get this implemented, but have run through every known combination I can come up with to get what I'm looking to do working. I'm trying to have a ListView footer sit at the bottom of the screen when the ListView items do not fill the page. For example, I have a page with a ListView of three ...

Issues with ListView & File Output

I have so many issues with my project, i really don't know where to begin. First off, i get an error "an object reference is required for non-static field, method or property". It underlines retPath (the line: DriveRecursion_results.DriveRecursion(retPath);). I have no idea how to fix this. THe other thing i'm still stumped on is how...

Adding Items To A ListView Through A WinForm?

If I have a ListView embedded in a WinForm, is there any way I can simply click in the ListView and start typing in new items when the form is running? ...

Android ImageView with drawable not always rendering

I have an ImageView object that I'm setting the android:src="@drawable/some_xml_file" instead of a standard png and it seems to not always render the drawable, as you can see in the first row here (it also happens intermittently in other rows as well): I've tried setting the src & the background property but they both have the same effe...

making an unbound listview i.e. set alarm screen in the alarm clock app

Well like the title says if you go to the Alarm clock App on droid i am trying to recreate the screen that comes up when you select an alarm. Essentially the "other" screen in the app. I am new to this but have spent the past day searching for this but im not to sure i know the correct terminology to find what im looking for. I am maki...

How do you handle the SelectedIndex of a sortable ListView?

I have an asp.net ListView that is sortable. I have a button with a "select" command name. When I click on the button the appropriate row gets selected. If I then click on a sort header the ListView will sort, but the selected index will stay the same. In other words if I click the 2nd row then sort the 2nd row is still selected. Is...

Having an issue with custom Qt ItemModel

I'm trying to create a model to store data about photos, icons and pathnames. class PhotoListItemModel : public QAbstractItemModel { struct ItemModelType { std::string fileName; QImage image; boost::shared_ptr<char> unique_id; }; std::map<string, ItemModelType> ItemMap; std::map<char*, stri...

WPF ListView Row background color

I am working with MVVM and WPF. VM contains - an Observable collection of Task (where Task is a class that has public properties TaskId, TaskTime and TaskDetails) CurrentTaskId I can set background color of each rows by using one of the method below using ListView ItemContainerStyle Trigger OR using ListView ItemContainerStyleSe...