listview

Get data being bound to ListView on DataBound event

Hi, I have a ListView control and I have added a DataBound event (don't know if this is the correct one) to the control. I'm wanting to access the data being bound to that particular ItemTemplate from this event, is that possible? ...

Is there a feature compatible alternative to asp:ListView?

Is there a feature compatible alternative to the asp:ListView control that came with ASP.NET 3.5? Due to some recent issues with a certain hosting provider's installation of SP1, I'm looking for a temporary stand in for the ListView that can be dropped into place with minimal change to the rest of my code. One simple alternative would b...

Populate ListView with data from server

Hi, I have a ListView on my checkout page with an ItemTemplate which build up a table of items ordered by customer. I want to add a total in the footer of the table, I have the following markup: <asp:ListView ID="lvOrderSummary" runat="server"> <LayoutTemplate> <table id="tblOrderSummary"> <tr> <td><b>Title</b></td...

c# make ShowItemToolTips sticky

I have a ListView where several items have more text than fits in the column width. ShowItemToolTips means i can hover over a column and see the full text which is great. However, for really long texts, it disappears before there is time to read everything, so i would like to make it stay longer (or possibly until the dismissed manuall...

Delphi ListView 'stuck' in mouse event

The situation is a bit hard to explain, I'll do my best. I have a ListView, which has a right click menu. One of the menu item opens a new non-modal form. Usually the user clicks the menu item, new form shows up and is fine. However, if user brings up right click menu by clicking on an area of the ListView where there is no ListItem sh...

Can System.Windows.Forms.ColumnHeader use a different image then one from the main ImageList?

I have an ListView set up to sort, and I have that working well. However, when the ListView is sorted, no indication is provided as to the current sort column and order. I tried a solution setting the ColumnHeader.ImageKey property whenever sorting, but I want to be able to use images that aren't the size specified by the ListView's Sm...

Edit item or subitem values of a selected listview item

Ok, so I have a listview on one form, and when a button is pressed it opens up a new form with the contents of the selected listview item and it's subitems in a series of textboxes. The user can then change the data in the textboxes and either press save to make the changes or cancel to close the window. What command would I use to chang...

Android Loading listview items from service results in hang

Hello, In my Android application, I have a ListActivity. This ListActivity uses a SimpleAdapter that I fill with items from my service. So, in my code, I do: MySuperCoolService.Binder serviceBinder = null; private ServiceConnection serviceConnection = new ServiceConnection() { public void onServiceConnected(ComponentName classN...

C# ListView Problem Adding Items...

So, here's my question: Why won't the code in the first snippet work when the second one works fine. Also, I have set the view property to details. I've read all over how to add lvi's to the listview, and it fails every time... except for then I do it manually. So, this doesn't work... // Iterating through the rows... for (int x =...

Listview selection color

I'm playing around with wpf and I saw the following article: http://stackoverflow.com/questions/382006/wpf-listview-inactive-selection-color I want to do something similar. I want to put a border around an a listviewitem when it is selected and i want to not change the background color. The reason I want this is I want a color coded lis...

Is there a way to 'lock' the last item in a ListView to always show?

I am listing folders and folder sizes in a ListView for a VB.NET WinForm program I'm writing. I would like to total the folder sizes in the last entry of the ListView and 'lock' it show it always shows (even if scrolling through the list. Is there a way to do this? I'd really like to avoid adding another control on the Windows Form ...

What's wrong with my ListView Callback retreiving subitems?

I'm trying to retrieve the SubItem in my ListView from another thread, but I keep getting the Item instead of the SubItem. I'm not sure how to code this properly. Below is the code I'm using: Delegate Function lvExtractedCallback(ByVal x As Integer) As String Private Function lvExtracted(ByVal x As Integer) As String Static Dim l...

ListView.ItemCheck versus ListView.ItemChecked in .NET

What is the difference between the ListView.ItemCheck and ListView.ItemChecked events in .NET? ...

Getting contents of a listview to a System.Data.DataView

How to store the DataView of a listview to a System.Data.DataView? ...

WPF Listview databinding

I have a list view that has a column databound to a list.Count see below: <ListView.View> <GridView> <GridViewColumn Header="Contacts" DisplayMemberBinding="{Binding Path=Contacts.Count}"/> <GridViewColumn Header="Notes" DisplayMemberBinding="{Binding Path=Notes.Count}"/> </GridView> </ListView.View> The List i...

Caching ListView data a viable option?

Here's my scenario: 1) User runs search to retrieve values for display in ListView via LinqDataSource. 2) They click on one of the items which takes them to another page where the details can be examined, further drill-down can happen, etc. 3) User wants to go back to the original ListView results to select another item for inspection. ...

Owner Draw ListView "smearing" when scrolling

I have an ownerdrawn ListView that "smears" when I scroll. It only affects the last displayed item as it moves into the visible are of the list... It looks like: Blah Blah Blah ...have all been drawn on top of each other 1 pixel apart. The code in the DrawItem event is of the form Rectangle rect = new Rectangle(e.Bounds.X +...

WPF: How do I allow scrolling with the mouse wheel in a ListView while dragging ListView items?

I have implemented drag and drop in a ListView in my WPF application. Items can be dragged and dropped inside the ListView, and also into a TreeView that is beside the ListView. Currently, I have it set up so that when you drag to the bottom of the ListView, it automatically scrolls down the list. What I'd like to know is if there's ...

Style a WPF Expander to look like an Outlook ListView group header

How can you style a WPF Expander image to be +/- e.g. to look like an Outlook ListView group header as shown in the image below: Open Closed ...

Disable Multi-Select CheckBox functionality in a ListView?

I'd like to disable the multi-select feature of a checkbox in a ListView. How do I do that? ...