listview

[Android] Why do ListView items not grow to wrap their content?

I have a rather complex ListView, with variable list item heights. Under certain conditions, I need to display an additional view in a list item, which is hidden by default (View.GONE). By enabling it (View.VISIBLE), the list item grows in height (or at least it's supposed to). The problem: Even though I declare the item's root layout t...

Custom drawing in TListview descendant.

I have a descendant of TListView that offers some additional features, such as sorting and ability to load itself from a TDataset. I now wish to extend this component further so that certain aspects of the drawing can be specified at the time items are added to the list view. I'm having trouble figuring out which procedure or procedur...

listview select item backcolor

Do I programmatically have to manage the backcolor\highlight color on a Listview's item when selected through code? So if I do this: listView1.Items[1].Selected = true; Do I also need to do this, so it looks highlight, as it does when selected with a mouse click: listView1.Items[1].BackColor = Color.Blue; (and clear it when the select...

How to display data from a text file in a listview?

I want to get data from a text file to a listview. A sample text file contains: 0th member first=XXXXXXXX second=YYYYY000 1 first=XXXXXXX1 second=YYY1111 2 first=XXXXXX22 second=YYYY2222 3 first=XXXXXX33 second=YYYY333 4 first=XXXXX4444 second=YYY4444 Like that I want to get value of first to listview.items.caption and second to su...

Set a Row to Bold in Listview in WPF

I have a Listview like the Address book in outlook. and it looks like Name Phone ---------------------------- Everyone User1 12345 User2 54321 User3 98765 I need the row "Everyone" to Bold letters. And my listview is <ListView Name="lvContacts" Grid.Row="2" Grid....

Multi-line list items on WinForms ListView control?

Hi there, Is there a way to display multi-line text in standard Winforms listview control? Thanks, Kemal ...

Android: Moving window of items in a ListView?

I am trying to update the ListView with periodic updates taken from an HTTP response. Now, I am thinking that because this is very specific to my application, I can get away by using a background thread and then updating the ListView using the magic UI thread. The last time I tried this, I had to remove the entire adapter of the ListView...

How should data be synchronized between a WinForms GUI control and the client class?

What method is considered the "standard" for keeping data structures within GUI controls synchronized with the data structures that are maintained by the application? For example: In WinForms, if one creates a ListView instance, rather than pointing it to a data structure that represents the items to appear within the list, one must...

asp.net -- ListView data control

Hello there, I have a asp:ListView control that I bind with a List. When Editing records in this ListView control, I can always get the Unique Id of record being edited by using: int id = Convert.ToInt32(lstView1.DataKeys[e.NewEditIndex].Value); Is it possible to get the whole object that is being edited, using any of the ListView ...

Android: ListView with rounded corners...

I was wondering if there was a way to create a ListView with rounded corners in Android... ...

WPF ListView - is it better in Visual Studio 2010?

I've tried implementing a readonly grid of items using the WPF ListView. It appears to me that this is a poorly designed and implemented control. (Unlike most of WPF which I like). Specific issues I've come across: Cannot make the last column expand to fill the width of the control, without writing extra non-XAML code. (See this que...

i need to change the backcolor of the selected item in listview with multiple columns.

As the title goes. I already implemented this in listbox. now i want to implement this to listview with multiple columns. can you also include drawcolumnheader example? ...

WPF ListView : Header styling

I want to have a ListView with columns and a particular style: The background for ALL column headers should be transparent except when the mouse is over in one of them. When this happends, the column's background in which the mouse is over should be yellow and all the color in the other columns should be, let's say, blue. I've tried ...

C# List View Ordering

I'm coding in VS2008 using C#. On my form, I have a ListView control. Now, it's purpose is for the user to add items to it. However, each new item is added AFTER the last item in the list. Is there any way to have each new item be put as the first item in the list? ...

Problem printing multipages ListView in C#. Can't figure it out.

I am having an issue printing listView items. the problem I think is at private void PrintPageDetail(PrintPageEventArgs e) So this is what's going on: it prints whatever fits on one page over and over. (There is more data than what is printed) although the page footer and header print OK with the right page numbers. and I am having har...

Android: How can I add HTML links inside a ListView?

How would I go about adding clickable links inside a ListView? ...

Check if property is null in lambda expression

I have a list of objects that I am trying to bind to a listview. I am sorting by two properties. The problem exists whereby some records may not have one of the properties. This is causing an error. I would like it to still bind the records that have the property. IEnumerable<ERec> list = retailerList.Cast<ERec>(); lvwRetailStores.DataS...

ListView Click event

I am having a List of Item which I retrieved from my Sqlite DB... I wants to set Click event for each n every item.. How I can customise this event based on Item clicked???? Be Descriptive... I am a Begineer.. The method tht I used to fill data in my List .. private void fillData() { db = new DBAdapter(this); db.open(); ArrayList db...

ASP.NET Listview Column Width

In windows applications we can change the listview's column width by just dragging the header of the column. How can I done that in a ASP.NET listview? ...

How can I load a folders files into a ListView?

I'd like to have a user select a folder with the FolderBrowserDialog and have the files loaded into the ListView. My intention is to make a little playlist of sorts so I have to modify a couple of properties of the ListView control I'm assuming. What properties should I set on the control? How can I achive this? ...