listview

Android: How to hide a ListView Item

How can you hide an item in a ListView or at least set its height to zero? I have tried setting the visibility of the View to GONE but it still maintains the item's space (height). ...

Realign ListView contents.

I have this in my code to retreive the ListView contents and save to a file. But the alignment is wrong. How do I set it to be right? // save to textfile StreamWriter sw = new StreamWriter(@"D:\test.txt", false); // false=not append sw.WriteLine("Items Unit Price Quantity Total Price"); sw.WriteLine("----- --------...

Retriving data from ListView control

I have a ListView control set up in details mode with 5 columns. It is populated by code using the following subroutine: For j = 0 To 14 cmd = New OleDbCommand("SELECT TeacherName, ClassSubject, BookingDate, BookingPeriod FROM " & SchemaTable.Rows(i)!TABLE_NAME.ToString() & " WHERE (((BookingDate)=" & Chr(34)...

Wpf SelectedItem wont work for a Combobox in a ListView

Hi there, I´ve got a problem with a Combobox in a ListView. I´ve got a class called "Substrate". This class contains an object of a class called "SubstrateType". I want to show the objects of the class "Substrate" in a Listview. Each property of the "Substrate" is presented in the columns of the Listview. For the different "SubstrateTyp...

ListView ToolTip only in First Cell - VB.NET

I'm adding a ToolTip to a ListViewItem. However, the ToolTip only shows up when the user hovers over the first cell in the row to which the ToolTip has been applied. MyListViewItem.ToolTipText = "Important Message" The only other code I have related to ToolTips is this: MyListView.ShowItemToolTips = True Any idea how I can make th...

Grouping Categorized Data In WPF.

Here is what I am trying to do. Dynamic Category: Columns can be 0 or more. Must contain 1 or more Type Columns. Will only be displayed if any row contains Type Column data associated with it. Data Rows: Will be added Asynchronously. Will be grouped by a Common Category column. Will add a Dynamic Category if it does not yet exist....

How to get selected listitem index in Qt

Hi all, I am having a QListView which having some items. Now i want to get the index of selected item. i.e. if i select 5th element i should get 5. How i can get this?.. waiting for reply. Thanks in advance -S ...

Pass object to dynamically loaded ListView ItemTemplate

I have been following the following post on using multiple ItemTemplates in a ListView control. While following this example does produce output, I am trying ot figure out how to psas an object through to the ItemTemplate's user control, which I do not seem to be able to do/figure out. protected void lvwComments_OnItemCreated(object se...

Listview : How do I get RowHeader

I have a ListView whose size is fixed to maximum of 10 items View Property is set to List and scroll is disabled I want to get row headers numbered from 1 to 10 How do I get that?? ...

Multiple choice list with custom view?

I've seen example com.example.android.apis.view.List11 from ApiDemos. In that example, each row takes the view android.R.simple_list_item_multiple_choice. Each such view has a TextView and a CheckBox. Now I want each view to have 2 TextView's and 1 CheckBox, somewhat similar to the List3 example. I tried creating a custom layout file ro...

Drag and drop with wpf and nested listview

I have a model like this: <List> <Obj Number="1"> <Group Number="1"> <Detail Name="AAA"/> </Group > </Obj > <Obj Number="2"> <Group Number="1"> <Detail Name="BBB"/> </Group > </Obj > <Obj Number="3"> <Group Number="1"> <Detail Name="CCC"/> </Group > <Group Number="2"> <Detail ...

c# ListView item selection issue

I have A ListView and and delete button on a Form I can select any item and press delete button to remove the item (I have disabled Multiselect) Requirement: As I delete an item next item should be selected if Bottom item is deleted then it should select previous item How do i achieve it ...

How to wordWrap the text in a column using ObjectListView

For example I have a big sentence: "I like to eat pie and have fun around the house all day long!" And I want it to appear like this: "I like to eat pie and have fun around the house all day long!" In this post: http://stackoverflow.com/questions/1673963/multi-line-list-items-on-winforms-listview-control Grammarian said that you only ...

android:listview

hi, i am facing problem regarding automatic expansion of list view.. 1) i had separate xml file for each list item . i.e inflated in efficient adaptor, list element is also using selector or highlightor file for background change on click. now in my main xml file view is like this -LINEAR LAYOUT - VERTICAL (MAIN) - LINEAR LAYOUT...

Android ListView clears when hard BACK key is pressed.

In my android app I have a Tabhost with a ListView as one of the tabs. By clicking on an item in the ListView (an address) I start an Intent to Google Maps for directions and the choice dialog pops up for google maps, web browser etc. Problem is if I press the hard back button then the launch dialog goes away but also the ListView is c...

Highlight Specific Rows In ListView

Can anyone help me on how to highlight specific rows of ListView in vb.net? ...

ListBox and Listview problem

Hi, I have listbox in my applcation and corresponding coding.. XAML: <DataTemplate x:Key="menuItemTemplate"> <WrapPanel> <TextBlock Text="{Binding Path = Menu}" /> </WrapPanel> </DataTemplate> <ListBox x:Name="menubox" ItemsSource="{Binding}" ItemTemplate="{StaticRes...

Add new row: ListView vs. DataGrid

Hello! I have been looking around and even found a couple of related answers and didn't get a certain answer to my question. Is there a way to have in the WPF ListView an additional row like in a DataGrid? I prefer using the ListView since I use 3.5 and the DataGrid is not officially in the box and has many quirks. I would prefer using...

android: how to specify multipe listivews

It seems that android has enforced that a listview must have the name android:id="@android:id/list", is there anyway to create multiple listview then? I have two activities which are both listview but have to control different format of Lists, one with image+text the other is just text. ...

ImageView scale type not working in list activity

I have used ImageView's before and understand the different scale types that can be set... However I am having an incredibly difficult time trying to get an ImageView to scale properly in the row of a ListActivity or an ExpandableListActivity. I have tried setting the android:scaleType property to every single value but the image never ...