listview

WPF ListView resizing madness

I am trying to resize a ListView in WPF. I want to figure out how to force a ListView to shrink it's width to only fit the width of it's columns. I have a ListView that I bind using the View property and add some GridViewColumns like so: <ListView ItemsSource="{Binding MyCollection}"> <ListView.View>...

Problem with Bundle in android

Hi, I put a String value (Edittext input from user in my Search-Activity) in Bundle. Then I get the Bundle (Result-Activity) to check if the user left the Edittext with no value. But It's not work, my If statement have something wrong, it seems like nothing was checked. I debug and saw the code run "If" and then "Else". Can someone help ...

ListView Final Column Autosize creates scrollbar

Hi There, I am implementing a custom control which derives from ListView. I would like for the final column to fill the remaining space (Quite a common task), I have gone about this via overriding the OnResize method: protected override void OnResize(EventArgs e) { base.OnResize(e); if (Columns.Count == 0) ...

How to make a ListView transparent in Android?

How to make the ListView transparent in android? The background android screen image should be visible. ...

WPF - Making ListView (GridView) Scroll when too much data?

<Grid> <ListView ItemsSource="...."> <ListView.View> <GridView> <GridViewColumn ......../> </GridView> </ListView.View> </ListView> </Grid> When there are thousands of rows the above XAML causes the grid to size larger than the form and data becomes hidden. What I want to do is to keep the ListView so t...

Setting Column Background in WPF ListView/Gridview

I'm looking to set the background of a column in a WPF GridView. Many Google results have pointed towards setting the GridViewColumn.CellTemplate to change the appearance of a column. However, I'm met with an issue when setting the background color; it's not stretching to fill the cell: Here's the xaml I'm working with: <Window x:Cla...

WPF Listview : Column reorder event?

I need to sync the column order of two ListViews event when the user changes the order. But it seems there is not a Column reorder event. For the moment I just did a AllowsColumnReorder="False" but that is not a permanent solution. While searching the net I found many people with the same problem but no solution. What can be done? ...

Can't get WPF Listview to collapse when expanders in the listview collapse

I have a wpf listview with two expanders in it. When the expanders expand the listview makes room for the content. When they collapse the listview does not "take back" that extra space. I have set HorizontalAlignment and VerticalAlignment to Stretch everywhere. Is there a way to do this? The Details and Chart columns contain the exp...

Why is my CommandArgument Empty?

I have an ASP.Net page, which displays a list of options to the user. When they select from the list, it does a post back and queries a sql server. The results are displayed in a listview below the options in an update panel. Below is a snippet of the ItemTemplate: <asp:LinkButton Text="Save IT" OnCommand="SaveIt" CommandArgument="<%...

ListView version of ListBox.SelectedItem

hi all i'm trying to perform an action once the user double clicks on an item in the listview. but there doesnt appear to be any methods available for this. can anybody please help me out here? thanks lots :D ANSWER (Thanks to Kyle's link): private void listView1_MouseDoubleClick(object sender, MouseEventArgs e) { if...

ASP.Net ListView and event handling.

I have an .ascx which contains a listview. Let's call it the parent. Within its ItemTemplate I reference a second .ascx which is basically another listview, let's call it the child. On the parent, the child control is wrapped in a placeholder tag. I use this place holder tag to show and hide the child. Psuedo code: The child...

Making WinForms controls readonly and IDisposable

Hi, I'm wondering whether this is a good thing or a bad thing and what I have to watchout for when calling Dispose. I have a Tab (PageTab) that I extend and insert a Panel which has a listview and another Toolbar control into. These tabs then get inserted into a tab control (all native .NET WinForms controls). When the user closes on...

Cause 'hint' to refire on listview as I move over items

Sure I've seen this done before but off-hand I can't find any examples. I've got a TListView, set in 'report' viewstyle. It has about half a dozen subitems, and one thing we'd like to do is have the 'hint' (tooltip) on the listview dynamically show another field of data. That is, each time you move the mouse over any given row, the 'hin...

Performance problem caused by ToolTip.

If the ToolTip is binded to the data operations takes a long time, the UI thread is blocked. Is it possible to solve this problem? The ToolTip should be shown optimal on idle and asynchronous. You can see the effect in the following example. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:io="clr-namespac...

C#/WPF: Make a GridViewColumn Visible=false?

Does anyone know if there is an option to hide a GridViewColumn somehow like this: <ListView.View> <GridView> <GridViewColumn Header="Test" IsVisible="{Binding Path=ColumnIsVisible}" /> </GridView> <ListView.View> Thanks a lot! Edit: For clarity Unfortunately, there is no "IsVisible" Property. I'm looking for a way t...

How can I display different ContextMenus in WPF ListView GridView?

I have a ListView GridView with ListViewItems that represent different categories of items. I'd like to display a different ContextMenu for each category of item. I was hoping to do this using DataTemplates but I'm struggling. My TreeView has a DataTemplate per category and I can see how I can set a different ContextMenu for each ther...

C# Listview sort succesful but trying to move scrollbar to top...how?

Sorted the listview and tried to "refresh" it by selecting the first element and thus putting the scroll position at the top but it's not quite working. Here's my code: if(lv_sets.SelectedItems.Count > 0) { lv_sets.SelectedItems[0].Selected = false; } if (columnSorter.SortingOrder == SortOrder.Ascending) { columnSorter.Sorting...

Cocoa Data Manipulation

Hi! I'd like to know if cocoa has a default way of storing data. If yes what is it? I mean like rails is by default using sqlite... Also I'm searching for a tutorial on how to use it... Like get data and showing it into a listview, etc... Thanks for your help! ...

Android ListView background colors always showing grey.

I have a ListView that I'm populating from a custom ListAdapter. Inside the Adapter (in the getView(int, View, ViewGroup) method) I'm setting the background color of the View using setBackgroundColor(int). The problem is that no matter what color I set the background to it always comes out a dark grey. It might also be worth noting that ...

WPF Listview Access to SelectedItem and subitems

Ok, I am having more problems with my C# WPF ListView control. Here it is in all its glory: <Window x:Class="ebook.SearchResults" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="ISBNListView" Height="503" Width="1004"> <Grid> <ListView Name="listView1" Ma...