listview

Binding C# Objects to ListView / control

Hey all, I have a class that returns a list of "Category" Objects. I'd like to display them along the left-hand side of the page in a listview (if that's the best way to do it, even). The category objects have normal attributes. Title, User, NumberOfProjects. I'd like to display both the title and the number of projects in this list. ...

C# Listview - error provider on listview

Hi folks, can anyone please let me know is it possible to show error provider icon on listview. ie if Im having a listview of items.. I would like to show error icon on a specific item in a row. ...

Simple ListView Question

Hi All When I click a button, I am trying to insert a new listview item. It is supposed to go in a certain Group, and it will have an item, followed by two subitems. But my code isn't working. ListViewItem lvi = new ListViewItem(itemtext, grouptext); lvi.SubItems.Add(subitem1); lvi.SubItems.Add(subitem2); ...

Suggestions for building a treeview control in Android

Suggestions for building a treeview control in Android ...

How to turn list scrolling off when calling onContentChanged in Android ListActivity?

Hello all, I got a ListActivity. I update the activity using onContentChanged() API. My problem is that each time I call the above API the list scrolls to the top. Is there any easy way to turn this "feature" off? Thanks. / Henrik ...

Lazy loaded list view in GTK#

I'm looking to display a large dataset via a list view in GTK# and performance is an issue here. I'm currently using a TreeView backed with a ListStore, but adding all my data to the ListStore takes forever. Is there a list view widget of some sort in GTK that supports lazy loading of data? In Winforms, you can use the VirtualMode pro...

android listview scroll past top

Does anyone know how to achieve the "scroll past top" functionality that you see in some apps (like the HTC Sense email app for example) where when you scroll up to the top of the list and try to scroll up past that, it appears to pull down, and when you release it springs back up? ...

android grow box animation

Hi, Inside of a ListView row, I have a box (right now its an imageview, but i will probably be converting it to a linear or relative layout object at some point). when you click on the box, i have it start a scale animation that makes it appear to grow. however, once the animation is over, the box goes immediately back to its original...

Setting an adapter on my listview

Hi all, I'm trying to have my listView as defined in my main.xml display a list of my objects. This worked fine when my activity extended on ListActivity and used getListView(). Now I extend from a normal Activity though and want to plug my custom adapter into my R.id.list like this: ListView lv = (ListView) findViewById(R.id.list);...

Creating a split button for a custom ListView adapter

I'd like to make a list adapter that formats views like this: I want to be able to fire a different onClick when the user clicks the image. I have defined the onClick on the image itself in the getView() override, but how do I then get the position of the line that was clicked so I can update the record in the database to record the ...

Scrollable Android ListView in TableView Row

I have the following layout for a dialog: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/categorylist" android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="0"> <TableRow> <ListView...

android's listview not listening to clicks on items added before the activity pauses

Well, hello everyone. I'm just a beginner in Android so excuse me if my question is dumb, but still I can't find an answer to what's happened. I'm writing an application that consists of 3 activities and 1 service. The service keeps track of my content's lists, like that: private void setLists() { this.lists = new HashMap<String, Task...

How can I keep an observable collection sorted in a listbox?

I have the following to get data from an Entity Framework 4: IQueryable<Exam> examsQuery = entities.CreateQuery<Exam>("[Exams]").Include("Course"); exams = new EntityObservableCollection<Exam>(entities, "Exams", examsQuery); In my viewmodel I have the following code: public IEnumerable<Exam> Exams { get { return exams; } } ...

Inplace Win32 listview editing is always canceled

I have a listview in small icon mode on a modeless Win32 dialog with LVS_EDITLABELS set. Regardless of whether editing was begun by a mouse click or programmatically by calling ListView_LabelEdit() and regardless of whether ESC or RETURN was hit upon finishing editing, when LVN_ENDLABELEDIT notification is received pszText of NMLVDISPINF...

wpf .net 4 - listview vs datagrid

I have implemented the listview to show an Observable collection coming in an MVVM desktop application. Now I'm wondering if I should have used the new datagrid instead. Can someone tell me what are the main advantages of using a datagrid control. I looked for some listview vs datagrid docs on the web but didn't find anything recent. T...

wpf datagrid selection changed

Hello, I used to have the following code using a listview: private void ListViewSelectionChanged(object sender, SelectionChangedEventArgs e) { foreach (Exam exam in e.RemovedItems) { ViewModel.SelectedExams.Remove(exam); } foreach (Exam exam in e.AddedItems) ...

Issue when setting a ListView in a AsyncTask class

Hi, I'd like to set a ListView to data I get from a web service. I get the data in a AsyncTask instance, but when I try to set some of my ListView attributes, it crashes (on line "lv.setVisibility(View.VISIBLE);"). Anybody can help? thanks public class Atable extends Activity { private EditText mSearch; private static final i...

Creating a ListView layout from an ArrayList

What I want to do in one of my tabs in my application is have a ListView of contacts. Though, in that example, the ListView is made from an array of Strings. Is there a way that I can create one of those using the values from an ArrayList? Thanks! ...

resetting "Issue ID" in Sharepoint site

I designed a site in share point. There is a column called "Issue ID (linked to item)" in ALL Issues view. I am using this column to list and identify the items which are created by employees. It increases by 1 as a new issue is created. Unfortunately, I have to reset this ID to 1 because during the test period I created and deleted b...

Asynchronous image loader on listview [Android]

I'm having problems to implement an acynchronous image loader to the following code. I read some posts arround the web about it and I think I understand the logic behind it, but I seem to fail in implementing it. The code bellow is what I use to simply load the images in my listview. public class MyCustomAdapter extends ArrayAdapter<RS...