listview

ASP .NET - Retrieve value from Listview based on NewEditIndex

Using ASP.NET 3.5 ListView control. I would like to capture the value of my table id from the currently edited row of a ListView. A ItemEditing event has been added to the ListView. The only value available in this event is e.NewItemIndex. This returns 0 if the first row of the current page of the ListView is being edited. How do I co...

how to fire listview itemcommand using javascript

how to fire asp.net listview itemcommand using javascript ...

VB.NET: ListView Checkbox ALWAYS in first column

Hi, I have a listview with checkbox property set to true, and I also allow column reordering. The problem is that when someone moves the first column to some other position, the checkboxes remain in that column and move with it to the new position - so eg. they can be in the middle of the listview. I would like to have the checkboxes A...

setOnItemClickListener() not working on custom ListView @ Android

I have Implemented a custom ListView by extending LinearLayout for every row. Every row has a small thumbnail, a text and a check box. The list view is deployed properly and I can scroll and fling through it without any problems. But The ListView doesn't seem to respond to the setOnItemClickListener() at all, So I had to find a workaro...

please help to draw border for image in listview.

On a treeview after the select event, I populate a listview with images. I want to custom format these images and place a black color border around each image. private void TreeView1_Select(object sender, EventArgs e) { if (folder != null && System.IO.Directory.Exists(folder)) { DirectoryInfo dir = new DirectoryI...

edit ListView from C++ clr

Hi, I am facing some prob in managed C++, I can fill my ListView , but I am unable to edit specific row at later time I can fill like listView1->View = View::Details; listView1->Columns->Add("S.no",...... ListViewItem^ itmp = gcnew System::Windows::Forms::ListViewItem("100"); ListViewSubItem^ itms1 = gcnew ListViewSubItem(itmp, "12...

create fixed size thumbnail dynamically on listview control

how to create fixed size thumbnail dynamically and resize image in listview best fit the size of the thumbnail. private void Treeview1_AfterSelect(System.Object sender, System.Windows.Forms.TreeViewEventArgs e) { if (folder != null && System.IO.Directory.Exists(folder)) { try {...

Adding Rows to Gridview without using databind

Hello, I have a gridview inside of a listview predefined in the xaml: .... <ListView x:Name="listPriority" IsSynchronizedWithCurrentItem="True" Margin="0,30,0,4" BorderThickness="0,0,0,0"> <ListView.View> <GridView> <GridViewColumn x:Name="grvPriorityColumn" Width="140" Header="Priority" /> <GridViewColumn x:Name="grvMessage" Wid...

how to Listview Control make frame for every image

hi, how to Listview Control make frame for every image in dotnet? Advance wishes.. ...

How to use Eval("x") value in ListView

Hey, I'm wondering how I can use the Eval values in a ListView? I mean displaying it as text is simple enough, even sending it to the codebehind via some parameters in a button click event for example. But how do I actually use that information as is on the aspx page without using any triggered events? Basically I get an Eval("Storage"...

How to Apply Cosplan in WPF ListView Which Implements GridView columns

Hi, I am very new to WPF World. I have a ListView with Number of Columns. I wanted to apply Colspan for the last three columns (Only a single column header for the last Three columns with colSpan=3). In My Case there is no header Tesxt for the last 3 columns. Could some one help me out with some code sample ? I will definitely apprec...

ASP.NET - Ideal Control to Display a Pivot Table

I am trying to display a tabular set of data in a databound control, but I need to pivot the table such that the individual records are table columns rather than table rows. The end result is a table with a fixed number of columns and a variable number of rows each displaying single field for all of the records like this. Due to the fact...

Android: ListView Flicker effect. Any hints on how to get rid of this?

For some reason, whenever I scroll through my list of items, the background inside my listview disappears and reappears giving rise to a "flicker" effect which I don't really want. I've tried the suggestion at: http://stackoverflow.com/questions/1377336/android-make-listview-transparent but it doesn't work for some reason. Any suggestion...

ListView and onitemClicked effect in Android ?

Hi I have made an BaseAdapter that does not show the onclick effect on the rows when the items get selected (orange background). Im wondering what is needed to make the OnClickedItem effect appear. I tried to set the OnItemClickListener on the list, but it did not help. here is my code: private class MyAdapter extends BaseAdapter...

Format WPF Listview Colum to show 2 decimal points.

How can I format WPF Listview Colum to show 2 decimal points? ...

Ignore "The" and "A" when sorting a listview in C#

Currently I am making a mini music player / organizer for myself. However, when using a list view, it sorts alphabetically, and doesn't ignore "The" and "A": A Lot Like Me Adiago For Strings Stay Crunchy The Foresaken Time to Pretend should be: Adiago For Strings The Foresaken A Lot Like Me Stay Crunchy Time To Pretend It's all...

WPf : Binding with more than one property at a time

Hi, I have a list view in which I use binding to display my information. I use a simple data template. Is there a way to bind two data in one control. What I mean would to be replace something like : <TextBlock Text="{Binding LName}"/> <TextBlock Text=", "/> <TextBlock Text="{Binding NName}"/> to something like <TextBlock Text=...

Sorting A ListView By Column

Currently I use a custom sorter on the listview, and i can sort the listview each time i click on the FIRST column, but it won't sort by other columns. SortStyle: Variable to determine whether it is Ascending Sort, or Descending. if (e.Column == 0) { if (SortStyle == 0) { List.ListViewItemSorter = customSortDsc; ...

Populating a ListView in a multithreaded app

I need to retrieve a set of data from a database, then populate a ListView with the data. I understand multithreaded form controls and the proper techniques for updating controls from worker threads. Here's the dilemma: I may have several thousand entries in the ListView... rather than Invoking the form thread to update them one at a ...

[WPF] Creating a GridView from a table structure

Is there a library/CLR command that allows me quickly (in a few lines of code) convert a tabular data structure (say List<List<string>>) into a displayable WPF DataGrid? I'm looking for a function like: ListView FromIEnumerable(IEnumerable<IEnumerable<object>> source) {...} Which would be used as panel.Content = FromIEnumerable(Read...