listview

Converting listview to a composite control

The link below shows a listview composite control in its most basic form however I can't seem to extend this to what I'm trying to do. http://stackoverflow.com/questions/92689/how-to-define-listview-templates-in-code My listview has 1 tablerow with 2 fields. The first field contains 1 element whilst the second field contains 2 elements...

Using ListViews on Android?

I am just getting started with the Android SDK and I had a quick question. I am trying to set up a ListView with a rectangle of color on the left and then a bit of text for each row. I also want to make it so I can click each entry in the list and open a new activity to display some information (similar to the contact list). Anyone have ...

Invert WPF GridView to bind items to columns instead of rows

Is there a simple way to invert a WPF GridView so that items are bound to columns instead of rows? Or would it be necessary to write a custom view mode? ...

C# - How to get/set ListViewItem or ListViewItem.ListViewSubItem by key ?

I have a listview with several items that are created dynamically, each has two subitems that are quantity and code after a query to the database should update the quantity, but to make the code more readable I would like to access subitems by the key and not by its index, something like: subitem["quantity"] but I don't see how to assi...

Android save Checkbox State in ListView with Cursor Adapter

I cant find a way to save the checkbox state when using a Cursor adapter. Everything else works fine but if i click on a checkbox it is repeated when it is recycled. Ive seen examples using array adapters but because of my lack of experience im finding it hard to translate it into using a cursor adapter. Could someone give me an example ...

how to make a folder for the files placed in listview in c#.net ?

whats the procedure to send the files placed in a listview to a folder.. that is... i need to place all the files in the listview to a folder on button click event.. on button click it should make a folder for all the files in the list view and send them in.. im using winforms in c#.net ...

how to use hash table to avoid duplicate entries in a listview when items are added to it?

what is the way to avoid the redundancy in the listview when the items are added to it.. im using winforms c#.net.. i mean how can i compare between the items in listview1 and items in listview2 so that while adding the items from one listview to another it could not enter the items that are already entered in the target listview.. im ab...

how can i send the listview files to the directory using c#.net?

i have the files situated in the listview now i want to copy those files to a directory in windows.. how this action can be performed?? ...

Applying a style to a gridview

I have been tearing my hair out all afternoon on this, hopefully someone can help me. Bear with me on this one. I have a number of styles in my App.xaml which transforms a gridview, the code looks like this. <Application.Resources> <Style x:Key="{x:Static GridView.GridViewScrollViewerStyleKey}" TargetType="{x:Type ScrollV...

Passing ID of element to a C# web service (using JSON) from jQuery

I have an containing a list of divs that jQuery turns into progress bars. On .ready, I build a list of all of these progress bars and for each one, call a webservice that gets a value indicating how full the progress bar should be. In order to do this, I need to pass the ID of the div to the web service. Because the divs are inside a ...

Can't get edit to work on a ListView

I have the following code which I thought would give me the ability to edit a record in my list view but when i click edit i get a postback but am not able to edit anything. Am i doing something wrong? <asp:ListView ID="lv_Personnel" runat="server" OnItemEditing="lv_Personnel_ItemEditing"> <LayoutTemplate> <...

'View cannot be shared by more than one ListView' Wpf Error

What is wrong with this code ? It throws the Exception: "View cannot be shared by more than one ListView" <ListView ItemsSource="{Binding}" SelectionMode="Extended"> <ListView.Style> <Style TargetType="ListView"> <Style.Triggers> <DataTrigger Binding="{Binding ElementName=MyControl, Path=IsCompany}" Value="True"...

List Item background is changing on scroll

I have a background color applied to a ListView <style name="CKButtons"> <item name="android:windowBackground">@color/window_background</item> </style> but everytime the list is scrolled the background color changes back to the system default (black). When the scrolling stops the color goes back to @color/window_background. The ...

Android Animation for all the items in a list

Hi, i have a listView which uses a custom .xml for showing each item. Fine, in this xml i have a CheckBox (with visibility set GONE) and a TextView with a text. What i want is have an animation which moves the text to the right and shows the CheckBox. I have the animation working fine for one item, but if i want to start it for all t...

Android: Populating multiple items in a listview row

I'm trying to populate a list, and my question is how do you bind the list row with multiple items. So far I have: String[] homeLists = getResources().getStringArray(R.array.homeItems); setListAdapter(new ArrayAdapter<String>(this, R.layout.home_item, R.id.homeItemName, homeLists)); home_item looks like this: <LinearLayout xmlns:an...

ListView as windows explorer

Hi, do you know any good example how to create listView which will look and has the same methods as windows explorer. copying, pasting, display thumbnails ?? I must use listView because I can't allow user to change directory, and I can't disable this option in windows explorer(I mean the place where can I click to go up or down or put ...

How to convert a DataPager in a Composite Control

I'm trying to convert a datapager that references a ListView all inside a composite control. The ListView correctly displays the full list so now I need to reference a pager to it. But for some reason the datapager isn't being displayed or paging the ListView. Also the DataPager must use an OnPreRender method to databind the ListView to ...

Copy a ListView’s Items to the Clipboard in WPF C#

hello, how can I copy the selected items in a WPF's ListView with binding to db fields to the Clipboard? thank you Cristian ...

Android ListView item highlight programmatically

Hi all, I know it's been asked around but I haven't found quite the answer yet (new to Android so sorry about the ignorance) my app's launch Activity has an EditText (called searchbox) , a ListView (designations) and a Spinner (types) I use the EditText as a searchbox, I have to pass the string through a custom editing to make searchi...

Delphi - ListView Question

Is there a ListView (ListBox) or similar component that allows me to easily drop another component in a specific column. (Multiple columns)? Like a checkbox, button or drop down list or all the above. (It would be nice to be able to sort via the header also) If not does anyone know of a resource on how to custom draw something like thi...