listview

Listview - menu for switching item

I'd like to add an option to my ListView, so that I can change it's view (tile, list, details,...) - just like in Windows Explorer. How can I build such a menu? With PictureBox and MenuStrip? PS: winforms, not WPF Thanks! ...

C# ListView with CheckBoxes, automatic checkbox checked when multi select rows

I'm using a ListView control with multirow and fullrow select on. When I'm selecting multiple rows at once, some of my rows magically become checked. This happens when dragging the mouse over and also when selecting one, and shift clicking another. See image describing issue here: What in the grapefruit is going on? Anyone? ...

android listviews: header and footer views

In my ListActivity, I need header and footer views (on the top and bottom of the list) to be used as previous page and next page buttons on my list, respectively, because I want to display only 20 items at a time. I set my header and foot views by doing: getListView().addHeaderView(myHeaderView); getListView().addFooterView(myFooterVie...

How to pass more than one array to a listview?

I am using a listview to display items. Currently I am passing an String array of items to it. But I want to pass one more array and display its items alongwith the items of the first array(i.e somehow two lines of text). How can I do that? ...

ListView fields not getting posted

I know I've done something like this before, but I have no idea why it isn't working now. I have a ListView with some textboxes. I want to read the text out of those boxes when I click a button (linkbutton, whatever). <asp:ListView runat="server" ID="lv_bar" EnableViewState="true"> <LayoutTemplate> ...

android application failing upon user scrolling - no 'obvious' error

I'm having a strange problem with Android 1.6 I have an application that has a ListView (found in Activity #1). The user can click on one of the rows in the ListView and is taken to a 2nd Activity (Activity # 2). User can then use the back button to go back to the ListView. The problem is that if the user scrolls down the list af...

Press enter in textbox when editing ListView causes exception (ASP.NET)

I used standard drag and drop to put in a ASP ListView with editing enabled. The table is two columns, a GUID primary key, and a text string name. Null is not allowed for either. When I edit a record (for the name column), I change its value (to a valid value) and press enter, it crashes with a Cannot insert NULL into column named "Name...

Updating Listview with high frequency

Hi There, I need to update my listview (Adding/deleting) , with a frequency of 20 updates per second. let me know what would be the best way to do the same. Thanks in advance Regards Deepak ...

Using a ListView to create a settings screen in android?

I'm developing my first android application, and i'd like to create a settings screen. I'd like the screen to have a similar look-and-feel as the native phone-settings screens and the native "create/edit alarm" screen. Thus with different kinds of (statically defined) items vertically stacked with a thin line between them. How do I de...

Table grid control for ASP.NET

What is the best way for me to build a control that will kinda work like an Access table in ASP.NET? That is, I define, say, 3 columns. The user can add/edit/remove rows. It can be one row at a time, that's fine. There are other fields on the form too, not related to this table. When the user is done adding rows of information, then...

ASP .NET - Retrieve values from selected Listview control row?

My Listview control contains 4 columns and 30 rows. I can retrieve the row number by using: //get row of listview item ListViewDataItem item1 = e.Item as ListViewDataItem; int findMe = item1.DisplayIndex; How do I then get values from one or all 4 columns? I was trying: this.lblReponseRoute.Text = item1.FindControl("routenameLabel")...

Show a list of Files in android?

I'd like to create a very simple android activity that takes a file path on the sd card and displays the contents of that directory in a listview. I know how to get a list of the files via File.listFiles() which returns an Array of File objects. What I want to know is how I can adapt that array to a ListView. Would an ArrayAdapter be ...

Best practices combining list and non-list views, like the Market

I'm trying to tackle a problem that seemingly many Android developers have, which is how to intersperse lists with non-list data, in one big scrollable pane. The model I have in mind is the screen for an individual app in the Market. You have a big description, a list of a few lazily loaded comments, and then some individual items tha...

android listview first visible position

How can I change the first visible item in a list view (I searched a method such as setFirstVisiblePosition) ? ...

How can I build an infinitely recursive listview control?

Not sure I'm asking the right question, but it's a start. I have a user control with a ListView and, ideally, I would like to nest this same control inside of the ListView to provide recursion. This would behave somewhat like a TreeView with child nodes. This might be a monumentally bad idea. :) In fact, I feed like MSFT is pointing me...

Enable listview columHeader checkBox Click

Hi Freinds, Here I just wants to have checkbox in my listview header. and i wrote the below code for that, can anyone help me out here to enable the check-box . Now I could only be able to see the checkbox- not to click on it. Does anyone has any idea on this , can it be handled by listView3_ColumnClick event..?? Thanks in advance. p...

List items with alternating colors

I have a list view and an adapter that sets alternating background colors to the list items ("zebra" list style): public View getView(final int position, View convertView, ViewGroup parent) { int colorPos = position % colors.length; ... convertView.setBackgroundColor(colors[colorPos]); return convertView; } But now, wh...

SimpleCursorAdapter - Binding to multiple item values in ListView

I have the following code to intantiate a SimpleCursorAdapter to use with a ListView. As you can see I have passed the R.layout.log_item to display the list items, and one value/control to bind to (TripDate). SimpleCursorAdapter sca = new SimpleCursorAdapter(this, R.layout.log_item,c,new String[] {DBAdapter.KEY_LOG_TRIPDATE},new int[]{...

C# listview - embedding controls

Hi , Can anybody help me with embedding controls in the listview. I need to add button controls as subitem of listview. thanks ...

How to detect double click on list view scroll bar?

I have two list view on WPF. The first listview is loaded with a Datatable. When double clicking on one item from the first listview, the selectedItem is moved to the second listview. The problem arises when appears an scroll bar in the first list view due to a lot of elements loaded from the DataTable. If a select one item and double ...