I have 3 listviews in a wpf grid column, one each for customers, products, and vendors. They each get data from LINQs to separate SS2005 queries in the same db. The lists are populated when a user enters text in a textbox. The LINQ query code uses as startswith() function that reads the user entry and returns a smaller list to the listvi...
I have this ListView and I'm using a DataTemplate (as you can see) for items.
How can i add column names to the ListView with this ItemTemplate definition?
I cannot use that GridViewColumn definition, because this ListView uses lazy data loading, so when there are too many rows, it fetches them on demand. GridViewColumn somehow does not ...
Does anyone know why I'm getting a NullReference Expception at following line:
var field = (string)((Binding)((GridViewColumnHeader)e.OriginalSource).Column.DisplayMemberBinding).Path.Path;
when using this example: http://www.switchonthecode.com/comment/reply/263/2980 (based on: http://www.switchonthecode.com/tutorials/wpf-tutorial-...
A simple WPF ListView:
<ListView Name="recordContainer" ItemsSource="{Binding Path=MyCollection}">
<GridView>
<GridViewColumn Width="260" Header="Name" DisplayMemberBinding="{Binding Path=Name}"/>
<GridViewColumn Width="100" Header="Value" DisplayMemberBinding="{Binding Path=Value}"/>
</GridView>
</ListView>
MyCollec...
Does anyone have an idea how to Print (A4) the Content of a ListView (e.g. with all the ColumnHeaders, fit to the Page-Width and without the Scrollbar)? I've found several old threads about this on stackoverflow, but no complete answer.
Thank you.
Cheers
...
Is there a way to detect if the scrollbar from the ScrollViewer in a ListView has reached the bottom of the virtual scroll space? I would like to detect this to fetch more items from the server to put into the bound ObservableCollection on the listview.
Right now I'm doing this:
private void currentTagNotContactsList_scrollChanged(obj...
Hi
G'day.
I just want to write a simple application about XML and ListView Control with C#.
Any good tutorial? thank you!
...
Even if I know it's not ideal - I need to programmatically populate a listView (for whatever reason).
I am declaring my columns in the markup:
<ListView.View>
<GridView>
<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=Name}"/>
<GridViewColumn Header="...
I'd like to implement a view in my WPF application that looks like the Windows Media Player 11 Songs view.
That is: Broken into categories by album. Each album has a the album art and album details. On the right is the list of tracks on that album, with further details.
Any pointers? I'm fairly new to WPF.
Note: Windows Media Player 1...
I have a WPF ListView within a ScrollViewer.
I need to collapse the ListView and I am trying withthis code (pretty striaghtoforward):
this.myListView.Visibility = Visibility.Collapsed;
Problem is the ListView seems to be reserving the space even when collapsed - it disappears but the ScrollViewer doesn't accordingly resize.
Anything...
Hi!
I'm writing a Database Editor / Bill of Materials Maker (2 separate .exe) for work, and I have this crazy issue. Here's how the flow works in the apps: Open Database, Search Database, Check Items Needed, Send to BOM Maker, Save as .xls.
So far, I can send checked Items to the BOM Maker, but only if I open the search window, check t...
I have an app using a ListView as a main screen. Each row displays some text, a checkbox and images according to the data, and since you can't do that with a standard ListAdapter, I crafted my own.
Every time a change occur (adding / removing a row, checking a tip, navigating, etc) to the list data, I refresh the list display, using thi...
I would like to have an animation when an item in ListView changes position, so it would slowly move to the new position. Either in a template or in code.
I've tried descending from a (Virtualizing)StackPanel and overriding ArrangeOverride to reposition and animate the items. the problem is that I don't know at what position the item was...
I load data from Cursor to listview, but my Listview not really display "smooth". The data change when I drag up and down on the scollbar in my ListView. And some items look like duplicate display in my list.
I hava a "complex ListView" (two textview, one imageview) So I used newView(), bindView() to display data. Can someone help me?
...
I have a ListView in a Windows Form that I bind a list of objects to on the creation of the form. What I would like to do is on a button click loop through the items that were created and change their IsEnabled property to false. I've tried two methods and neither were particularly successful. Can anyone help fix these up and/or sugge...
ListView.ColumnClick doesn't seem to fire for clicks in the header area that is outside the columns (area to the right of the last column, if there is any)
is there some easy way to detect clicks here?
...
Here is the code:
<GridViewColumn
DisplayMemberBinding="{Binding Path=BookId}"
Width="100">
<GridViewColumn.Header>
<Border BorderBrush="Black">
<TextBlock Width="{Binding RelativeSource...
I can set the ToolTip property of a ListView control, but that's for the whole control.
Can I just have a tooltip for the Details View header area?
...
I have a list that contains names.
I would like to create a listview that will display these name, three to a row.
I am unsure how to accomplish this.
...
I am new to ASP.NET. I am trying to display my sql results using a list view. I am using the example for grouping my results by a data field from the 4GuysFromRolla.com website. However, I find the way of grouping the items by a data field to be a bit clumsy. Is there a better way to do it?
Thanks.
...