listview

c#.net ListView - pull different information back from different tables

Hello all, I’m using c#.net. I have been looking round the web and can’t find anything that helps me out. I have a list of contractors, daily hours, daily slots (three different tables). First row - contains the contractors names. Second row - unlimited - contains the slots. For example I thought I could use a ListView howeve...

Android - ListView autogrow is not working as expected

This is continuation to the question I already asked a while back. I've been offered a solution which is not really working. Anyway - here's the problem/question I look at some posts from the past and it seems that if I add items to the ListView adapter it should update itself and user should be able to scroll to the newly appended item...

Android: Event handlers for a custom view? (QUESTION REVISED)

OLD QUESTION (Already answered by Mark - The answer is to use getTag()): Let's say I have a ListView with a custom layout for each row having an ImageView and a TextView. Now, when a click is made, I am able to determine which image and which textview were clicked based on the view but if I have to pass this information to say another ...

Strange .NET ListView behaviour

I'm trying to get my head around this behaviour: I have a ListView on a form in LargeIcon View (System.Windows.Forms.View.LargeIcon) This line is in the constructor: this.listView1.LargeImageList.ImageSize = new Size(32, 32); And then this function is called upon a double click: private void listView1_DoubleClick(object sender, Even...

Listview filling issue

I need to know what are the things going on here.Actually my aim is to add a column additionally and display the contents.I Added column but i want to know the codeflow required to finish to display items in that column ManagedDeviceCollection list = new ManagedDeviceCollection(); try { if(SpoServer == null) return; _lis...

ListView ItemDataBound - determine if item is AlternatingItem?

I'm using the Listview to display my data. On the ItemDatabound event I want to do some manipulation and change some of the data being displayed. When I check the Item on this event I am using the following code, But I need to know if the item is an alternating item as this will effect what I want to do with the row. Can anyone point me ...

ListView.SelectionChanged to RoutedCommand

I'm working in the MVVM design patter with WPF. I have a context menu with several items in it on a ListView. Based on the number of items selected in the listview, I want to enable/disable certain menuitems. Is there a way to route the selection changed event along with the number of selected items in the listview directly to the vie...

ASP.NET Binding integer to CheckBox's Checked field

I have a following ListView item template, in which I am trying to bind integer value to Checked property of CheckBox. IsUploaded value contains only 0 and 1... <asp:ListView ID="trustListView" runat="server"> <ItemTemplate> <asp:CheckBox ID="isUploadedCheckBox" runat="server" Checked='<%# Bind("IsUploaded") %>'...

Android: How do I deal with storing Bookmarks?

I am essentially using a listview but am looking at providing a bookmark functionality. I am thinking that I should store the item attributes in a file when bookmarked and retrieve when required to populate a bookmark listview. I was wondering if there is a de facto standard used in achieving this or do I follow just the "writing into ...

WPF ListView ScrollBar visible to false

Hi, Is it possible to force the horizontal (or vertical) scroll to NOT display even when needed? ...

Android - ListView duplicate events

In my app I have a ListView backed by ArrayAdapter. In it I'm detecting events in OnScrollListener#onScroll method to find end of the list. I noticed that on the phone (MyTouch) both track-ball and gesture/touch scrolling will trigger the event twice. On the emulator I get the same behavior with a scrolling wheel and click-and-drug scrol...

How to create a different user category in SharePoint and a view designated only for them?

Hi. How do I create a different users category? (more restrictive - with view only properties)? How do I create a View - only for this category of users? I need to group some users into a view only category and then assign only ONE view to this group, so they can not see everything that is in my list. SharePoint, so far, does not giv...

Removing a WPF ListView's "classic" indented border

How can I remove the "classic" indented border from around my WPF ListView control? Setting its BorderThickness to 0 does not get rid of it. ...

How to show thumbnail of pdf in listview C#.net?

ImageList imageList = new ImageList(); if (folder != null && System.IO.Directory.Exists(folder)) { try { string[] arrImageName=new string[1000]; int Count = 0; string CutName; ...

How can I reorder columns in a listview with the same result as drag and drop

How do I reorder the column headers in code AS IF I have clicked and dragged them around? When AllowColumnReorder is true on a ListView you can drag around the columns, and the display index is changed. When you add new items to the listview, you don't have to worry about how the columns were rearranged, it lines up the incoming data wi...

Interface issue

i added a property 'WrmVersion' in interface IResourcePolicy but i am not getting those thing in the implementation side means here it should come in the List view data. means SubItems.Add(((IResourcePolicy)Data).WrmVersion is not getting This is the interface public interface IResourcePolicy { DataVersion WrmVersion ...

Cannot create ActiveX component.pls help

using System; using System.IO; using System.Drawing; using System.Configuration; using System.Windows.Forms; using System.Runtime.InteropServices; using Microsoft.VisualBasic; class PDFThumbnailCsharp { [STAThread] static void Main(string[] args) { // Acrobat objects Acrobat.CAcroPDDoc pdfDoc; Acrobat.CAcroP...

Is there a way to save databound ListView data as a whole instead of saving per row?

I have a ListView that is databound thru DataSource of type typed dataset table. private void LoadTrusts(int? clientId, int? imageId) { TrustDataSource = GetTrusts(clientId, imageId); _TrustListView.DataSource = TrustDataSource; _TrustListView.DataBind(); } Where TrustDataSource is saved to ViewStat...

WPF ListView Always focused last added item ?

Hi! I have many ListViews with the same DataSource with IsSynchronizedWithCurrentItem="True" and I'm dynamicaly adding items to this DataSource. The problem ist when the scrolls appears, the added items are not visible unless I move the scrollbar. Should I use another Control for this purpose.. or how can bring the last added item into...

Get public string in codebehind into LayoutTemplate of ListView

Hi guys, A doubt in ASP.NET(VB) I have a public variable in code-behind(ASPX.VB) Public _orderCode As String = "Hello World" At ASPX, I would like to access it inline. That too inside the LayoutTemplate of a ListView <asp:ListView runat="server" ID="listView_OrderReplies" DataKeyNames="ProductID" D...