listview

Appearance of a WPF ListView under Windows Vista and Windows XP is not the same

In a WPF application I have a ListView: <ListView Name="ItemSelList" ItemsSource="{Binding ItemColl}" SelectionChanged="ItemSelList_SelectionChanged"> <ListView.View> <GridView> <GridViewColumn Header="Date" Width="90" DisplayMemberBinding="{Binding Date}"/> <GridViewColumn Header="Time" Width="90" DisplayMemberBindi...

WPF ContextMenu with bound items: Items.Count == 0 in ContextMenuOpening event

I have a ContextMenu with the ItemsSource bound to the selected item of a list view, like this: <ContextMenu ItemsSource="{Binding Path=PlacementTarget.SelectedItem, RelativeSource={RelativeSource Self}, Converter={StaticResource possibleConverter}}"/> The possibleConverter enumerates all possible values for a property of the the ...

Have Button re-appear immediately after clicking button in ListView row

I have 4 buttons on a page. Each button opens a modal window and let’s the user input data in a form. When the user hits the save button in the modal, a ListView appears on the page with the submitted data. The button the user clicked to open the modal window is set to visible=false, so it’s gone when the row is added to the ListView. ...

get height of ColumnHeaders in .net WinForms ListView (in details mode)

Possible Duplicate: How do I get the header height of a Listview - c# Possible duplicate: How do I get the header height of a Listview - c# Hello, do you know if it is possible to find out the height of header of a ListView in Windows Forms application when it's switched to Details mode? I'd like to find this out beca...

ListView, CheckBoxes and the ID's

So, i'm having a problem (newbie one) with a CheckBox Listener AND a ListView. I need to request the '...long id) that passes through the Overriden method onListItemClick and put it into a OnCheckedChangeListener. How should i do that? If you guys need the code i can post it! Thanks in advance!! ...

Get the current bounded object in a ListView's ItemTemplate

I want to be able to get the current bound object in the ItemTemplate of a ListView control. Here's an example of what I want to do: <asp:ListView ID="UserList" runat="server"> <LayoutTemplate> <asp:PlaceHolder ID="itemPlaceHolder" runat="server" /> </LayoutTemplate> <ItemTemplate> //How can I get the curren...

text is exceeding the listview bounds in Qt

Hi. I need to customize the listview,I am placing an icon and a text at the center of the listview. If the text length is bigger then the list rectangle length.. the text is coming over the icon first letter of the string is not visible.. How to avoid this situation? Is it possible to give marique effect for the string? Thanks in adv...

How to transfer data from a listbox to a listview c#

I have a form which contains a listbox which is connected to a dataset, listview and 2 picture boxes. The data which fills the listbox is the title of a photo When an item(title) is selected in the listbox the image that its related too shows up in picturebox1. This is fine ive got this all to work. However I then should be able to mo...

Best approach to show big amount of "grid" data in Android

Hello all. I am building an application for Android (1.5) that, after quering a webservice, shows to the user a big amount of data that should be displayed in a "grid" or "table" style. I must show a result of about 7 columns and 50 rows (for example a customer list with names, adresses, telephone number, sales amount last year and so)....

How to get ListView to grow to the size of content

So I have a fairly complex activity the parent being a linearlayout with a table with some basic info and buttons. Then a couple listviews that the user can add items to. So these listviews grow more and more as the user uses the app. The problem I'm running into is the Linearlayout is bigger then the resolution of the screen and so it n...

WPF: Getting the scroll bar to work in a wrap panel within a list view with group data

Hi, basically what I am trying to achieve is to group data within a List view with an expanded set to false - so that basically all you see is the grouped name and count of items - nothing special and easy to work out. Now for the difficult part (I have spent all day trying different options to get this to work!) when the expander is e...

How do I vertically align an item within a list using relative layout?

I am using a list view in Android 1.5 to show a list of images and text next to the image. I am trying to vertically center the text but the text is at the top of the row instead of centered. Below is my layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" an...

How do I place widgets above and below a listview?

I have a list view and want to put stuff both above(on the y axis) and below(y axis) it including images, text views, and a row of buttons. Below is a simplified version of what I am creating. Unfortunately the list covers(i.e. above on the z axis) the header so the header text is not visible instead of being underneath (on the y axis)...

Why is my onItemSelectedListener not called in a ListView?

I'm using a ListView that is setup like this: <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:longClickable="false" android:choiceMode="singleChoice"> </ListView> In my code I add an OnItemSelectedListener to the ListView like this: getListView().setAdapte...

Creating a iPhone like roller using ListView

I want to create a better NumberPicker then the one used in DatePicker, I looked at the HTC Sense Alarm clock Roller (Looks like the iPhone Spinner/Roller). I want to create something like that. I've created a listView that looks right, but I need a way to get the current id of the middle row. ListView.getFirstVisiblePosition() kind of ...

Is WinForms ListView in VirtualMode limited to 100,000,000 rows?

I have some grid scenario with > 500,000,000 rows I would like to display in ListView. If I artificially limit my ListView to display 100,000,000: _listView.VirtualListSize = _data.Count; if (_listView.VirtualListSize > 100000000) _listView.VirtualListSize = 100000000; Everything works fine (In VirtualMode naturally). When I cha...

Whats the best way to swap two ListView items in C#?

Hello there, Whats the best way to swap two ListView items in C#? I see that the standard ListView doesn't implement such functionality. -- Best Regards, Murat ...

how to fix the column width of a listview in c# windows form?

i have a listview i need to fix the column width of the listview so that at run time user cannot drag the columnheaders and resize it.....what is the procedure?? i have searched all the properties but none of them help me out to solve this pbm.. this is possible in gridview but how will it be possible in listview.... ...

Listview dsplaying Issue

I am using LinearLayout to display ListView Adding Button at the Top. Then adding Listview bellow the button. Problem is that Listview take the entire screen at the time of scroll. At the time of scroll the first cell of the ListView went in the Background of the button. Is there any solution to strict the List below the button? ...

Setting height of ListView row

My application uses a ListView control to display some data from a database, and I would like to make the height of the row bigger (it is in the 'Detail' view). Here's a screenshot at the moment: http:// www.freeimagehosting.net/uploads/01478dd96f.png (Sorry about having to malform it, SO doesn't let me post more than one hyperlink) A...