How do I access a Control in the LayoutTemplate of a ListView control?
I need to get to litControlTitle and set it's Text attribute.
<asp:ListView ID="lv" runat="server">
<LayoutTemplate>
<asp:Literal ID="litControlTitle" runat="server" />
<asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
</LayoutTemplate>
<ItemTemp...
Hi,
I try to clear my listview but the clear method doesn't work:
myListView.Items.Clear();
This doen't work. When i put a breakpoint at this line, the line is executed, but my listview isn't empty. How come??
I fill my listview by setting it's datasource to a datatable.
My solution now is to set the datasource to an empty datatab...
I have a list view that is periodically updated (every 60 seconds). It was anoying to me that i would get a flicker every time it up dated. The method being used was to clear all the items and then recreate them. I decided to instead of clearing the items I would just write directly to the cell with the new text. Is this a better approac...
I have a reporting module which creates PDF reports from ListViews.
Now, I have a ListView in Virtual mode and therefore I cannot loop over the Items collection.
How do I loop over all elements in the list view from the reporting module?
I can get the VirtualListSize property, so I know how many elements there are in the list.
Could I...
I have a databound list view and can set all the column widths manually except for the last. The data length of the last field varies greatly. The last column needs to expand to handle the width of the data and if greater scroll. I have tried setting the width of the last column to some very large number, but that drives the column he...
My user is able to select multiple items in a ListView collection that is configured to show details (that is, a list of rows).
What I want to do is add a Delete button that will delete all of the selected items from the ListViewItem collection associated with the ListView.
The collection of selected items is available in ListView.Sele...
Is there a way to add a button control to a cell in inside a ListView in a WinForms app?
...
in all the datapager examples i've seen (using a LinqDataSource tied to a ListView) the queries to the database return the full recordset. how can i get JUST the page of rows that i want to display?
for example, if i have a table with 1million rows and i want to see the 10 results on page 5, i would be getting rows 51 to 60.
i'm sure i...
Hello,
I have a listview that you select a row/item on. This is linked to a datatrigger that displays an image on the row. The image should only be displayed when the row is selected.
This part works fine, however when you move the focus to something else, such as a textbox, or a messagebox is displayed, the listviewitem loses focus ie ...
How do you edit items and subitems in a listview? Let's say I have a listview with 3 columns,and subitems,
Car Brand | Car Name | Car Year
Ford | Mustang | 2000
Dodge | Charger | 2007
How would I Add items like that to listview and how would I edit let's say the Car Name on which ever row by index[] if I needed to edit at ...
Is there an equivalent event to LBN_SELCHANGE but for a listview?
...
Hi,
To add items to column 1 in my listView control (Winform) I'm using listView1.Items.Add, this works fine but how do I add items to columns 2 and 3 etc? It's the first time I've used listView.
Thanks
...
Good evening,
I have set in the AppSettings of my project a ListView object but I have no idea what I should use as value?! Because when I left it blank I can't save anything to my setting property rather the get value is always null after save. Is it possible to do this with AppSettings actually ?
Thanks for your answers!
Kind rega...
Hi,
I have a user control having a Grid with a ListView.
I have 4 columns and the width of all the columns is set to be as big as its content size.
I have to change the background of my header to gray. Having done that all the 4 columns have the gray color but the space after the last column is having the default color.
How can I resol...
Hi All, I have following class
public abstract class AbsTrinityEvent
{
public event IsSelected OnSelectedEvent;
bool _IsSelected;
ITrinityEvent _objTrinityEvent;
public AbsTrinityEvent(ITrinityEvent objTrinityEvent)
{
_objTrinityEvent = objTrinityEvent;
}
public ITrinityEvent TrinityEventOb...
Hi all,
I can't figure out how I can implement an Icon View in the WPF ListView (a view similar to the Windows Explorer). Searching on google I only found informations about implementing the GridView but no clues about the Icon View. I'm not talking about System.Windows.Form.ListView but System.Windows.Controls.ListView.
Perhaps there i...
Hi ,
I have WPF listview bound to collection of objects. Objects are continuously added in to collection from remote server and same is reflecting in to listview. Now we have requirement that we should be able to freeze listview for some time,
That is objects should still get added in to collection but should not appe...
How do I make a control fill the whole cell in a ListView (with a GridView)? I've played around with various properties, but the control is always it's minimum size.
Here's my xaml.
<Window x:Class="ListViewUserControlTest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.c...
We need to display the result of an SQL SELECT statement on a ASP.NET 3.5 web page. Although there are a number of columns that need to be displayed, only one of the columns needs an editable text box in it... however every record in the result set needs this editable textbox.
I know I can do this manually by building an html table myse...
I'm using Visual Basic 9 (VS2008)
I want to create new Tabs as and when the user clicks an Add Tab button.
The Tab must have a ListView control docked inside it.
How to programmatically add a Tab to TabControl with a ListView control docked inside it?
...