Why is ListViewGroup sealed?
I can subclass ListViewItem and even ListViewItem.ListViewSubItem, but I can't subclass ListViewGroup. Why is that? ...
I can subclass ListViewItem and even ListViewItem.ListViewSubItem, but I can't subclass ListViewGroup. Why is that? ...
I am trying to set the tool tip text for some of my subitems in my listview control. I am unable to get the tool tip to show up. Anyone have any suggestions? Private _timer As Timer Private Sub Timer() If _timer Is Nothing Then _timer = New Timer _timer.Interval = 500 AddHandler _timer.Tick, AddressOf Timer...
i want to make the listview control collapsible to the groups alone. Like in Vista's My Computer, where only the group names are shown and then we click on the group to expand it. I am using VB.NET 3.5 ...
Hi, I am trying to define a multicolumn listview in xaml (visual studio 2008) and then add items to it in c#. I have seen many posts on this subject, and tried the various methods, but I am getting errors. my xaml code is below, VS does not flag any errors on it. <ListView Height="234.522" Name="chartListView" Width="266.337"> <ListV...
I am using a WPF ListView with an always visible vertical scrollbar. I have a MouseLeftButtonUp event handler on the ListView. The handler is working properly except when the vertical scrollbar is clicked when it has nothing to do i.e. the ListView box doesn't have enough items to do any scrolling. In that case nothing should happen as ...
Hello, I have a listview bound to a datasource, each row has a checkbox control on it, what i want to acheive is when i press a button, i want to check through all of the checkboxes in the listview and check if any of them have been ticked. What i tried first was to add a onclick event to a button and loop around the listview.items an...
How can I retrieve the positions of the selected item in a multichoice listView ? The getSelectedItemPosition method returns only the first one... ...
Hello, I created a user control which contains a ListView with a custom ItemsPanelTemplate. <UserControl x:Class="..." xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="thisUserControl"> <ListView ItemsSource="{Binding Source={StaticResource cvs}}" N...
What is a nice and effective way of getting at each item in a ListView of more than one column using loops? After doing a fair bit of digging around I couldn't really find anything so I when I did find something I wanted to share it on here see if people have better ways of doing it. Also sort of like preempting a question that is bound...
I have a TextBlock that is in a Grid that is an ItemTemplate for a ListView. I have the items so that they grow when the window is resized, but I cannot figure out how to have the TextBlock be limited to that size. I've tried to do this with the width on the ColumnDefinition - if I set the Width to a fixed number (say 350) the text wra...
I have a GridView in a ListView contained in a ScrollViewer element. I understand WPF draws only the visible data at runtime, for example on scrolling grids only the visible rows are drawn initially - my problem is that I don't have as much power as on the desktop on a portable device I am developing for, so my WPF ListView - which scr...
Hi, I choose an item in my list to edit (I use Context Menu) , then I populate data to "refresh" the List and my List will display in "Top-Down" order. I want to display my list right in position of the item I have just edited (I don't have to drag scrollbar down to find it). So, how can I do that? ...
In my WPF application I have two ListView with identical columns. I want to bind the column width of the ListViews to each other. When I resize a column in one ListView I want the matching column in the other ListView to have the same width. It would be great if there would be no "Master"-ListView. Each ListView should update the other ...
I've got a WPF ListView/GridView spec'd in XAML. The first column uses a CellTemplate to specify icons and the others use DisplayMemberBinding to populate themselves. The icons column is 20 wide, the icons 16 but they're getting truncated by margins/padding/something. I can't work out where it's set. Here's the essentials (I've remov...
I am using a ListView for displaying list of items in a List page. I am also using DataPager control in my page for paging. PROBLEM While I am in the middle of the List let 5th page out of 10 pages and going to another page then clicking browser back button I am again comming back to my list page with page number showing 1st page out of...
Hi! Enough is enough - I've just spent an hour searching around trying to find out how to read the ListViewSubItem values (if that's correct terminology in XAML) from a ListView. Here's a little ListView: <ListView x:Name="CreatableAccounts" ItemsSource="{Binding Processable}" Margin="10,0"> <ListView.View> <GridV...
Hello, I'm trying to accomplish what should be a very simple task using the ListView Control. All I am trying to do is add two Items to a ListView Control. One Item goes under the "Title" Column and the other Item goes under the "Status" Column. I have seen many examples for the ListView Control and none of them cover this particular ne...
I realize i have to sort the collection where the ListView gathers the items from: ListView listCollection = new ListView(); But this doesn't seem to work unless the ListView is added as a GUI-control to the form, that in turn makes it very slow to add items to, hence why i have to use VirtualMode on my GUI-ListView in the first place. ...
Hi I have a listview binding to an ItemsSource. Why is the SelectionChanged event firing on the load/databoound events? I assume that it is because a 'default' items ie index 0 is selected. How can I disable this, because when selecting an item updated other sources with data. Thanks Petrus ...
Hi, I have a datapager with a pagertemplate. In the template I have a "Show All" button, which sets the PageSize of the datapager to show all records. This works fine but I want to be able to hide the button when it's clicked. It's in an UpdatePanel so I don't know if that makes a difference? <asp:DataPager ID="Pager" runat="...