Все вопросы: [listview]

607 вопросов

0
голосов
1ответов
416 просмотров

Drawing horizontal and vertical lines in listview control

how can I draw horizontal and vertical lines in listview control?

4
голосов
2ответов
2135 просмотров

C# ListView in VirtualMode flickers when the selected item is not visible

I know it sounds complicated to reproduce but please follow me: You have a ListView with VirtualMode = true. Select an item, scroll down so that the item selected gets outside the visual area and then try to add another item to the ListView. You will see that for a split second it behaves abno...

4
голосов
2ответов
10534 просмотров

Android: ListView with complex data model

I'd like to map an Array of "complex" data to a ListView. In a very simplified form my data model would look like something like this: class ListPlacesValues { String idObject; String name; String city; String country; ArrayList<String> classification; double distance_quantity...

1
голосов
1ответов
2711 просмотров

Android listview item doesn't appear

I should write in the title instead of 'doesn't work' something like 'I don't know how to do it' but the first version feels better :). What I am trying to do is the following: Download the xml from the web, parse it and create ArrayList of some objects (done and working) Display the objects us...

0
голосов
1ответов
73 просмотров

Interface coding issue

i am sending a value(attrname[5] = "WRM Version";) from SendAgentInfo() from a.dll It is received in sp.dll as WrmVersion.From here i am sending those values in to an interface(IResourcePolicy) located in data.dll.But the problem is data is not getting interface 'IResourcePolicy',,if it is recie...

2
голосов
1ответов
2392 просмотров

Reassign ItemsSource - Items collection must be empty before using ItemsSource

I'm using ItemsSource on a ListView. I now want to perform a search and filter the items with an SQL query, so I reassign the ItemsSource; but then an exception is thrown: Items collection must be empty before using ItemsSource. Alright, but how can I empty the items collection? Items.Clear is no...

4
голосов
4ответов
25367 просмотров

asp.net listview Container.DataItemIndex

I am trying to pass commandarguments like <asp:Button ID="btnSave" runat="server" Text="Save" CommandName='<%# Eval("Section_Name")%>' CommandArgument='<%# Container.DataItemIndex %>' /> but I get this error: 'System.Web.UI.Control' does not contain a definition for 'DataI...

3
голосов
2ответов
2991 просмотров

How to get ListViewItem under MouseCursor while dragging sth. over it

I'm implementing drag & drop on a ListView. I already managed to get the ListViewItem under the cursor when dropping on it but I would like to get the ListViewItem under the mouse cursor while I'm dragging sth. over the ListView-Control. I would like to select the ListViewItem (selected=true...

59
голосов
8ответов
19636 просмотров

Bubbling scroll events from a ListView to its parent

In my WPF application I have a ListView whose ScrollViewer.VerticalScrollBarVisibility is set to Disabled. It is contained within a ScrollViewer. When I attempt to use the mouse wheel over the ListView, the outer ScrollViewer does not scroll because the ListView is capturing the scroll events. H...

0
голосов
1ответов
824 просмотров

ASP.NET - ListView binding - Clarification

We have an ASP.NET application and using a ListView to display some user records from the database. Once we populate the ListView from the database the user can edit few/more records of it. Now our requirement is that once the user edits a record we need post those changes to the database but...

0
голосов
1ответов
1291 просмотров

Nested grouping in ListView

Is it possible to define few groups in one ListView? I mean group inside group, it is like tree. If yes - any link to sample, tutorials.

4
голосов
3ответов
4106 просмотров

Get public string in codebehind into LayoutTemplate of ListView

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" DataKey...

6
голосов
4ответов
6767 просмотров

WPF ListView Always focused last added item?

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 h...

2
голосов
2ответов
2902 просмотров

How do I make WPF ListView items repeat horizontally AND vertically?

I have a ListView where I would like to display things horizontally. That works fine, but now I would need to have them display like in a Windows Explorer type. For example : A B C D E F G H I or A B C D E F G H I Is it possible in a ListView?

0
голосов
1ответов
75 просмотров

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 ...

0
голосов
3ответов
5770 просмотров

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 re...

1
голосов
1ответов
4021 просмотров

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; ...

15
голосов
3ответов
20403 просмотров

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.

1
голосов
1ответов
1372 просмотров

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

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 ...

4
голосов
2ответов
3708 просмотров

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 ...

31
голосов
2ответов
47535 просмотров

WPF ListView ScrollBar visible to false

Is it possible to force the horizontal (or vertical) scroll to NOT display even when needed? The thing is that I need to display colors that are different depending of the item. That works fine but you can clearly see that the color does not reach both edge of the list view, which is kinda ugly....

0
голосов
1ответов
1736 просмотров

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 t...

7
голосов
6ответов
16567 просмотров

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...

1
голосов
1ответов
2847 просмотров

ListView.SelectionChanged to RoutedCommand

I'm working in the MVVM design pattern with WPF. I have a ContextMenu 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 SelectionChanged event along with the number of selected ...

2
голосов
1ответов
5071 просмотров

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 wan...

0
голосов
1ответов
273 просмотров

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(S...

1
голосов
1ответов
455 просмотров

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...

2
голосов
1ответов
1479 просмотров

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 hav...

1
голосов
1ответов
1108 просмотров

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...

2911
голосов
52ответов
747550 просмотров

How to stop EditText from gaining focus at Activity startup in Android

I have an Activity in Android, with two elements: EditText ListView When my Activity starts, the EditText immediately has input focus (flashing cursor). I don't want any control to have input focus at startup. I tried: EditText.setSelected(false); EditText.setFocusable(false); No luck. Ho...