listview

avoid ListView data binding on each page load

Is there a way to maintain the data in listview whenever I click pages in the pager?. Because,the data what I am displaying is static. So, I don't want to go to database again or put it in a session and rebind it. ...

Insert a combo box in a list view cell with Delphi 5

Hi, I'd like to put a TComboBox in a TListView component. Any idea how I could do that ? I don't have a clue, I'm not a delphi guru x_x. Also, I can't use external components. Any help is welcome :) ...

Creating grid of hexagons

I have to do a "grid" like this: Harmonic table I'm trying to create a ListView with ItemsSource=List<Note> where every odd note in the list is moved on the bottom... Is the ListView the right control? How can I draw an exact hexagon with faces that is near next object? EDIT: hexagon drawing is solved... this is the xaml <Path d:Lay...

Android ListView setSelection() does not seem to work.

I have a ListActivity that implements onListItemClick() and calls a doSomething() function of the class. The latter contains l.setSelection(position) where l is the ListView object. Now there is a onClickListener() listening for a button click that perfoms some actions and that too calls doSomething(). In the first case, the selected i...

DataBound CheckBoxList

Hi, I have a website programmed in Asp.Net and use a ListView for displaying data. The data is coming from a LinqDataSource. In my EditItemTemplate I have a CheckBoxList which consist of: <asp:CheckBoxList runat="server" ID="TypeCheckBoxList" RepeatColumns="2"> <asp:ListItem Value="128">6.-10. klasse<br />Norddjurs vejleder</asp:List...

Add columns in listview in c#.net

listview column issue ...

Squares-for-linebreaks missing in List view control. Why? .NET

This is not particularly a programming question, but I was hoping someone here may know the answer. We have in-house written application in C#. It's uses ListView control (i believe) to display a list of items - items/text that contains line breaks (newline chars). On most PCs (WinXP) the line breaks are displayed as two square characte...

issue with asp.net listview paging in mozilla

I have code like this: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // Do something } } When I click on paging in datapager, first the IsPostBack condition is skipped since it is a postback and then control moves to listItems_PagePropertiesChanging() event. After executing this event...

retrieve column data in ListView multiple column c#

Hello, I have a 3 column ListView. I'm having a hard time trying to gather a specific column in the selected rows of the ListView. I'm trying to do this, but its going through each SubItem of a row. foreach (ListViewItem.ListViewSubItem lvi in lvScanRepository.FocusedItem.SubItems) { string selPath = Path.C...

ListView Edit item Postion

Hello, I have a Listview in my aspx page with Insert template and Edit template. and a Add New LinkButton. When a user clicks on Add New LinkButton I am able to specify Insertitem Position so that the Insert TEmplate appears at the bottom of the listview. But how to I make the edititem template to appear at the bottom like the Inserttem...

how do i prevent multiple instances of added rows in a listview?

Hi. Here's my code: List<ListViewItem> itemsToMove = new List<ListViewItem>(); foreach (ListViewItem item in lvScanRepository.SelectedItems) { itemsToMove.Add(item); } foreach (ListViewItem item in itemsToMove) { if (!lvBatch.Items.Contains(item)) { lvScanRepository.Items.Remove(item); lvBatch.Items.Add(item...

asp.net checkbox in listview calling javascript code onchange.

Hi! In an ASP:ListView control, I have a checkbox for each row. Each row represents a product with a corresponding price. I want the customer to select one or more products and calculate a total price client side. So far, I've used the following code, but it does not work: <asp:CheckBox ID="CheckBox" runat="server" ...

C# ListView: ListViewItem offset possible?

I was wondering... I have a WinForms System.Windows.Forms.ListView with a bunch of ListViewItems that I'm drawing using the View.List style. Each ListViewItem has a "SmallIcon" that I fetch from the ListView's SmallImageList. My problem is that the icons are showing too close to the border on the left. I've tried to change the bounds an...

Autogrow ListView in Android

I did search around various questions related to the one I'm about to ask. I just want to ask it in clear and simple manner and hopefully get a clear and simple answer :) I have a List of several hundred items that I want to present to the user in ListView widget. Initially I want to start with say 50 items and as user scrolls near the ...

ASP .NET - Run required field validator and calloutextender in code behind?

I am using ASP .NET (C#) and have a page with a listview linked to a sqldatasource. The listview has a InsertItemTemplate which contains many textboxes. I want to make all the textboxes required via the RequiredFieldValidator (and the ValidatorCallOutExtender). Is there a way to do this in the codebehind instead of the aspx page? I...

Check data when Scroll with the OnScrollListener in ListView (android)

Hi, My ListView (two TextView, one Icon) have more than 4000 rows and It sroll very slowly. The problem is "For{} statement" with "Cursor" make my program worse. I want to get the "First Character"(from one of two TextView) to display when User Scroll. So, any solutions to archive this and make my program better. My function like this: ...

Styling last item in a ListView

Hi there, is there any easy way to style the last item in a ListView control? Basicly need to append a class. Cheers ...

ul wrapping li based on its height instead of hiding

Let's say we have a long list: <ul> <li>one</li> <li>two</li> ... <li>fifty-three</li> </ul> Even if you specify the height of the ul: ul { height: 100px; } The li elements will overflow outside of it. Is it possible to have the elements wrap themselves on the right like a window manager's "list view" or like h...

how to let the DataPager know the number of total records in the DataSource in custom paging?

Hi, The default paging mechanism needs to have the entire contents of the query that's to be paged through each time the ListView is rendered so that it can correctly determine how many pages the data can be broken up into. Essentially, it needs to know how many total records we're paging through. So, when employing custom paging we...

Change background color of ListView in VB6

I'm working with some legacy code and need to change the background color of a row (and the font color) in a ListView in VB6 based on some criteria. I need to change the color of the row when the row is selected and not selected. I can change the font color of a non-selected row via the .Foreground property but I can't change the color...