listview

My ListView backgrounds go black during scrolling - how to fix?

Ive specified white backgrounds for pretty much all widgets and it works, except when scrolling. The background container goes black during scrolling resulting in annoying flickering. ...

Override default behavior of SPACE key in .net WinForms ListView

Hello, I'd like to implement some custom behavior of Space key in a ListView. Basically I'd like to toggle selected status of the item under cursor - that should be fairly simple this.FocusedItem.Selected = !this.FocusedItem.Selected; but alas, it also does the default action, which is to select the focused item. This way I am unable...

Access Parent DataItem in Nested ListView

Hi Everyone, So I've got two listviews; one nested inside the other. The parent is being bound to a collection of objects that contain fields such as MaxPrice, MinPrice, and SuggestedProducts. The nested one is being bound to the SuggestedProducts collection of the parent item. How could I reference MaxPrice and MinPrice in the nes...

ListView selection issue...Using onItemClick(AdapterView<?> parent, View view, ...)

The problem I hope to resolve here is that when I click on one item in the ListView that item's background changes to light gray, but when I continue to scroll through the list every 4th item has the background changed to light gray even though those other items have not been clicked. How do I make only the item I clicked be effected by...

click feature in Qt

Hi, I just want to clarify, weather the feature is present or not in Qt. The scenario is like this, I have a list view with items, I want to place the icon to the listview when the item is selected. The selection I mean is, first time when I click item should be selected, next time if I click the same item then it should display some ...

Set Dropdownlist value in listview on itemdatabound

hello, i have dropdownlist of year which is coming dynamically.i have filled the dropdownlist using object datasource.on inserting in the listview control it is working fine. but when i click on edit button that dropdownlist value should be set which is coming from the database. e.g. if i have a row which contains Year=2006 an...

ListView item background via custom selector

Is it possible to apply a custom background to each Listview item via the list selector? The default selector specifies @android:color/transparent for the state_focused="false" case, but changing this to some custom drawable doesn't affect items that aren't selected. Romain Guy seems to suggest in this answer that this is possible. I'm...

How to select row in ListView without a select button?

How can i select a entire row in a listview by clicking on a row instead of use a select button? ...

C# listview clickable column and row

What I have going on is a listview inside of my windows form. How can I make so that only when you double click a row it pulls data for row X and column 3. meaning I have a listview of... A|B|C|D 1|2|3|4 @|#|$|% Bc|Dv|D#|dg so if i double clicked row thats begins with @ it will read in column 3 ($). I aleady have FullRowSelect = T...

Android Custom Listview

Hi I have created custom listview which contain Imageview+TextView+Checkbox Now my problem is that i have to get which row's check box is checked. Xml row.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" android:orientation="horizontal" android:layout_width="fill_parent" android...

VirtualMode in Gtk.ListStore ?

I'm looking for a feature within the Gtk.ListStore that working like the ListView.VirtualMode in Winforms. Is there something like that? ...

How do I programmatically add a button into the inflated layout from an adapter?

Im using an inflater inside an adapter for my listview. I need to add in a different button depending in the state of the data for each row, so Im thinking I need to do this programmatically, but how do I make sure its inserted into the correct place inside the layout? ...

Showing items as images in a WPF ListView

So I have binded a List to a ListView where the List has items of type Album, where it has lots of properties including .Cover, which I is an image on disk. Well since I don't know what type of image is needed and how they have to be loaded (I only know using Image types for Winforms), I don't know the type yet. Can someone show or post...

Adding an Image to ListView in WPF like this ... ?

I'm gonna create a ListView in WPF like the below image http://www.picfront.org/d/7xuv I mean I wanna add an image beside of Gravatar label within Name column. Would it be OK if you guided me ? Edit: The image is output of a method. The method makes the image from a base-64 string. ...

How to have ListView items with Label show up at the bottom of the item not to the right in WPF?

I am using a WrapPanel with an Image and Label, but the Label shows up to the right of the item. How can I make it show up at the bottom of the Image/Item? <Window.Resources> <DataTemplate x:Key="ItemTemplate"> <WrapPanel Orientation="Horizontal"> <Image Width="50" Height="50" Stretch="Fill" Source="{Binding Cove...

WrapPanel doesn't wrap in WPF ListView

I am using a ListView with an ItemTemplate like this: <Window.Resources> <DataTemplate x:Key="ItemTemplate"> <WrapPanel Orientation="Horizontal"> <Image Width="50" Height="50" Stretch="Fill" Source="{Binding Cover}"/> <Label Content="{Binding Title}" /> </WrapPanel> </DataTemplate> </Windo...

LVM_INSERTITEM very slow in vista/W7

in a large listview control collection (say 5000 items), adding a SINGLE extra item can take 10+ seconds in windows vista/7, and that's just the LVM_INSERTITEM message handling it looks that it only affects LVS_ICON, LVS_REPORT and LVS_LIST are still very fast can anybody confirm this? the same code on windows XP with similar listview...

Having an outline for MouseOver for a WPF ListView

I am using Windows 7 and the current item selection (by default) is to paint the background with cornflower blue. Is it possible to get rid of this and replace it with a 1px outline/border over the listview item that the mouse is over? I basically want to draw a 1px outline/border over any listview item with 1 pixel spacing between the ...

use custom control directly in Visual Studio project

i want to use the listview flicker"less" control found here http://geekswithblogs.net/CPound/archive/2006/02/27/70834.aspx directly in my c# Project. i dont want to make a custom user control project, build it to dll and then import it in my project. i just want this all in my c# Programm i am making. i think i have to add in my projec...

Checkbox 'Checked' in ListView is restored after scrolling

I'm having the following problem: I have a ListActivity, its ListView is composed by an icon, text and a checkbox (using LayoutInflater). The Adapter for the ListView extends ResourceCursorAdapter (i.e. the data source of the ListView is retrieved from a database, also the Checked status of each row) Everything works pretty Ok, exc...