listview

Listview to Excel HTML markup issue

I'm using code similar to code mention at http://www.dutch-creatives.com/post/2009/08/11/Export-ListView-to-Excel.aspx to export Listview to excel My listview <asp:ListView ID="lv" runat="server"> <LayoutTemplate> <table runat="server" id="table1" class="datatable" > <tr class="r...

Search / Filter ASP ListView Using LINQ

I have a ListView on a page that uses a object data source. I want to be able to add a search box to the page and only show the results that match the search query. Does anyone have a good reference? I'm using C#. <%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="system.aspx.cs" Inher...

How to determine if a view is visible in a ListView?

I want to be able to tell if a view is visible in my listview, which is populated by a custom CursorAdapter. How can I do this? ...

Filter subcategory dropdownlist inside editable template of listview/formview asp.net

In my listview object insert/edit template, I have two dropdownlists (category, subcategory). When a user selects a category (autopostback), I would like the subcategory dropdown to filter to only the those that match the categoryID from the category ddl. This seems to be complicated by the fact that it is in a listview object. I'm curre...

android ListView replacement for ScrollView

I have a complex layout file with many TextView's and EditText's placed on the canvas. The layout needs to be a ScrollView in order to properly work for the user. The problem is that 2 fields should really be ListView's with all the formatting that comes with them. Neither of these lists will be more then 10 lines long. I am currentl...

Display datatable in ListView control (WPF)

How to display a DataTable in a ListView control in WPF? ...

How to prevent ListView from updating while item is long pressed?

I have a ListView which is updated by some service sending intent. If update event arrives while I'm pressing some item in the ListView I get some weird behavior. The default orange rectangle in the pressed item disappears and some other item(s)'s text becomes darker (as if its item is being pressed). How do I postpone ListView update ...

Hide ID column in ListView control

I'm binding ListView control to DataTable. The DataTable have a column named ProductID. Is there any way to hide this column, because I'm gonna need it's value later? ...

Why does Android listview sometimes disappear after calling requery on underlying cursor?

I have a fairly simple application that uses a ListActivity to display a ListView. Each ListView item has a CheckBox so that the user can specify favorite items. I am using a class that extends SimpleCursorAdapter so that I can capture both the CheckBox changed event (to save the change to the database) and the list item clicked event ...

.NET: ObjectListView like

Hi, I need something like ObjectListView (http://objectlistview.sourceforge.net/cs/index.html), but it MUST be free and LGPL, BSD or some license that allow its uses in commercial applications. Thank you and sorry about my english. UPDATE: "Hi, To use ObjectListView commercially, companies normally buy a license. A license to use Obje...

Need help with focus in Android list when the first list item should be disabled

I use tabs in my Android application and one of my tabs contains a listview. I'm noticing some weird behavior when I override isEnabled in my list's adapter and then try to use the D-pad to move up and down through the list and to my tabs. If the 0th item of the list is enabled, then everything works as expected - I can move down thr...

How to handle the event when click on empty space?

I want to catch the event when a listview is left-clicked on an empty space - i.e. clicking on no item within the listview control. I've search in the Events list of the listview but found none. How can I do this? Please help! [Edit] What I want to do if I could catch this event: Deselect all items in the listview. ...

Android: ScrollBar bug in 2.2 for ListView

The problem appears in Android 2.2. It seems cool because it can auto-hide.But I don't like it quite much because the bar is an indicator for "Whether there is more content not present on the widget". Hiding it maybe neat, but may get the users wrong sometimes. In ListView, I find it a fatal bug at all. When there is more content to show...

Programatically access specific rows in List of CheckedTextView's - Android

Hi all, is it possible to programatically access specific rows in a list of CheckedTextViews to change the state of their textboxes? my program has a listview which has several CheckedTextViews which the user can press to toggle state. I want to save the state of the checkboxes when the user leaves the activity, so I have in my onPau...

Only one row of ListView populated in QML app, any idea why?

Hi, I'm trying to create a simple QML application that will get an RSS feed with my active chess games and do stuff with it. At this point I am just trying to populate a list view with the feed contents, but it only shows one item even when there should be 11 items in the feed. Is this a bug or am I not getting something right? Here's ...

List Control Adds a Space for an Image to Column 0 When Subsequent Columns Have Images

Hi, I’ve come across a problem with Windows list controls (I am specifically using MFC, but it looks like it applies to all list controls in the Windows common controls library). In my specific case, I want to create a list control that has two or more columns. The first column (0) is text-only and is used to allow the user to jump to ...

How to change the backcolor of a listview subitem using its own value

Hi, How can I programmatically change the back color of a single cell in a listview using its own value? The values in the ColorFlag Column Came from the database. Here is my code: foreach(DataRow dr in _dataTbl.Rows) { _markOW = dr["Mark"].ToString(); _stock = dr["Stock"].ToString(); _S...

List selection in Ringtone shows a blue color for selected item. What color code is that?

Hi, Do anyone know the color code for that blue selected text, as it is in Ringtone list? thanks. ...

listview doesn't get updated after changing isSelected property

I use an ObservableCollection<customclass> with an isSelected property bound to a listview. The customclass items are added via asyncrhonous communication with a server. I register to an NotifyCollectionChanged event and there under certain conditions set the isSelected property to true. However, this doesn't update my view. Only after s...

Multibinding Multiselection ListView

OK I have a weird one here. What I am trying to figure out is how to have one listview, populated by an ObservableCollection, update another ListView, populated by another ObservableCollection, based on the first listview's selection and then use a valueconverter to check or uncheck a checkbox based on the selection combined with the cur...