Passing data from listview controls
My listview is displaying data for a product item. In my template I want to display data based on the id of a product by calling a function that takes the id as a parameter. How is this done? ...
My listview is displaying data for a product item. In my template I want to display data based on the id of a product by calling a function that takes the id as a parameter. How is this done? ...
I have WPF ListView with GridView view and I want to remove any trace of row highlight. This useful piece of code can be found in one answer on this site: <ListView.ItemContainerStyle> <Style TargetType="{x:Type ListViewItem}"> <Setter Property="Control.Focusable" Value="False"/> <Style.Triggers> ...
Hi!, I have defined a List like this List Container class holds my Item object and it's state as a Enum. Person.Name Person.DOB I would like to bind it to ListView. lv.DataSource = list; lv.DataBind(); <asp:ListView runat="server" ID="lvPersons"> <LayoutTemplate> <ul runat="server" id="ulPersons"> ...
I have a class not extend from ListActivity, so how can I replace this code without error? SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.sbooks_row, cursor, from, to ); setListAdapter(adapter); ...
I have a control template in XAML that contains a listview with a gridview. I want to bind the listview to a datatable created within C# but I can’t see the listview to do this because it is within a control template. I’ve created the equivalent listview in C# by referencing the control template and its contents and thought that I would ...
I have been testing with a ListView inside a LinearLayout. I used an OnItemClickListener to modify values in the TextView of the selected positions. Specifically I was disabling the list item. Everything worked as expected. Now, I am testing this same scenario with the ListView inside an AlertDialog. However, things do not work the ...
How can I set the column width of a c# winforms listview control to auto. Something like width = -1 / -2 ? ...
I've never used the ListView control before and am trying to programmatically insert items at run-time. I have a column named Title. And once the user has selected a path from the FolderBrowserDialog. I need to be able to grab all the names of the files inside the SelectedPath and add the names of files as items inside the Title column....
For my Windows application I'm currently looking for a standard (or at least widely used) keyboard shortcut for moving items in a Win32 listview. I've looked at MSDN's recommendations Guidelines for Keyboard User Interface Design but unfortunately, the topic isn't addressed there. I'm thinking about Alt+<Arrow Down> and Alt+<Arrow Up> (...
I want to define the "Auto" width of a GridView Column in the code. How can i do that? var grid = (GridView)myListview.View; grid.Columns.Add(new GridViewColumn { Header = "My Header", DisplayMemberBinding = new Binding("MyBinding"), Width = ??? // Auto }); ...
I have implemented a selection pattern similar to the one described in this post using a ViewModel to store the IsSelected value, and by binding the ListViewItem.IsSelected to the ViewModel IsSelected. <ListView.ItemContainerStyle> <Style TargetType="{x:Type ListViewItem}"> <Setter Property="IsSelected" Value="{Binding Mode=...
I have a xml file name "list_row.xml", this was load in a listView: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <ImageView android:id="@+id/icon" android:layout_...
With VB6, is it possible to use LVS_EX_DOUBLEBUFFER to make the common control ListView flicker free? This property is exposed in VB.NET, but not VB6. I will be using version 6 of common controls, so in theory it should work. However I do not know how to implement it. ...
Hi, I have a listview with different the datatemplates set up to bind. I want to update some of the columns (mix of textblock and progress bar) when I call UpdateSource() on a bindingexpression. I also want to update 1 of the columns when the property is changed which it is bound too. I was able to get the PropertyChanged behaviour to ...
I have created a field in a list in Sharepoint WSS3. The field's type is:"Date and Time" and the format is "Date Only". When trying to export to spreadsheet a view that contains this field I get the following error : "can not the get the list schema column property from the sharepoint list". Is there any way that I can export this data...
Hi, I have a ListView binded to a GenericList and for each Item it is creating this tr and td's structure: <tr> <td>Name</td> <td>Surname</td> <td>14/08/2009</td> <td><a href="#" class="trigger">Show</a></td> </tr> <tr> <td colspan="4"> <div class="showPicture"> <img src="" alt="" /> </div> </td> <...
Hi, I was wondering if there was a simple way of doing this (setting a property or something of the ListView) rather than going through the Drag events. All I want is similar functionality to Windows Explorer, where users can drag the ListViewItems within the ListView and when dropped they remain where the user left them. All I want to...
Hello, I've a ListView with about 10 GridViewColumn's and about 100 Lines/Row. I'd like to display a "Total" or summary row at the bottom of the ListView. Does anyone have a idea how to do that, with keeping the ColumnWidth etc. like the others and making it a seperate item, so the "main" ListView can have a scrollbar? I've uploaded h...
How can a Windows Forms ListView be programmically scrolled left/right? Maybe a SendMessage can be sent to the control's horizontal scrollbar? ...
How can I make a WinForms ListView scroll vertical by MouseWheel? I'm using C#. ...