I am looking to create an editable ListView in a C# winforms application where a user may double click on a cell in order to change its contents. It would be great if someone could provide my with some guidance and/or an example. I am not looking to use any commercial products.
...
How can I create a List View (or List Ctrl) with paging ?
that means that whenever there are too many items in the List Ctrl, those items are organised in different pages.
hope u get wht i mean.
It would be better if there is already such control built (for example in Codeproject).
thanks.
...
In a ListView control, the focus is on some Item within that control - that is, the control maintains its own internal notion of what is in focus, which can be retrieved using the FocusedItem property.
I would like no items to be focused. In other words, I want the FocusedItem property to set to null. Any idea how I might accomplish th...
Hi everyone,
I am having a problem with dynamically assigning datasource to listview.
For example I have list of receivedBonuses(Bonus), receivedLeaves(Leave) and I want listview to display those list items depending on what link button user clicked.
Researching internet and stackoverflow.com i found 3 solutions:
Using repeater insi...
I want to implement an apperance as this article mentioned using nested ListView control. However, in my scenario, I cannot use EntityDataSource control so I bind data manually.
My table:
Categories
PK: UniqueId, Guid
Name, string
ParentId, Guid
<asp:ListView ID="CategoryList" runat="server"
onitemdatabound="CategoryLis...
When i add a listview to my form and in form load event i write below code , items added in the same row not in separated rows , how can i add them to separated rows
listView1.MultiSelect = true;
listView1.CheckBoxes = true;
listView1.Items.Add("Item 1");
listView1.Items.Add("Item 22");
...
I have a ListView control which is exhibiting an odd behaviour - rows are only partially updating after a postback. I'm hoping someone here can shed some light on why this might be occuring.
My listview DataSource is bound to a List of items which is stored in the page session state. This is intentional, partially to timeout out-of-da...
how to make column invisible of wpf listview?
(one way is to set width property to minimum lenth but that not proper solution)
can anyone help me?
...
I am working with the listview control. By default I am showing the itemtemplate with an edit button. When the edit button is pressed the listview switches to the edititemtemplate. I need to populate one of the controls in the edititemtemplate based on the item being edited - I've tried accessing the control (via FindControl) in the Item...
How do you disable additional checkbox selections/deselections without sacrificing the functionality of the ListView? I know you can call: ListView.Enabled = False, but that also disables any scrolling within it.
For example: I have a timer that starts a backup based on the Listview items that are checked. After a certain time, I don...
I'm designing an application using a Listview container with LargeIcons as the view type. I need a way to change the text orientation of the Listview Items with respect to the icon.
For example:
I would like to have to text displayed to the right of the icon in the Listview container.
Is there a way to do this?
Thanks,
-Sean!
...
Is it possible in WPF to bind a data matrix (data table or an XML file) to a ListView?
Given the following XML dataset:
<data>
<cols>
<col name="FirstName" />
<col name="LastName" />
<col name="Age" />
</cols>
<rows>
<row>
<col>Huey</col>
<col>Freeman</col>
<col>10</col>
</row>
<row>
...
I have a ListView that is set up with a MinHeight and a MaxHeight. The final height is determined by the number of items inside the list.
At the moment, when a list is added to the ItemsSource property of the ListView, the height jumps to the final height. Is there a way to animate this change in height, so that it's smooth?
...
I have a SQLite database that contains a huge set of log messages.
I want to display this in a list view (using wxWidgets).
The user can reorder the list (by pressing the column header), apply a filter on the result set and navigate through it as a usual list, using the scroll bar. The user can also select one or multiple entries in th...
I have a ListView WPF control with GridView which I'd like to resize the GridView columns, when the content of the columns changes. I have several distinct data sets but when I change from one to another, the size of each columns fits the previous data. I'd like to update dynamically. How can I do that?
...
I have a ListView with the Activation property with HotTracking. There appears to be about a 2 second delay between when the user clicks the item and the event fires. Is there a way to get the event to fire immediately upon the user click?
...
Hello,
I'm working on an wpf app which contains a listview with quite a lot of data (10 000 to 100 000) rows. The user can apply all sorts of filters to this listview making the filter logic quite advanced (and slow). For now, the relevant part of my code looks like this:
ICollectionView view = CollectionViewSource.GetDefaultView(hugeL...
I have a weird issue with my ListView. This ListView is linked to a DataSource containing a thousands items so it's pretty big.
My issue is that scrolling up is very slow... whereas scrolling down is ok. Any idea why?
...
Hi everyone,
First question here. I hope I won't mess it. Also excuse my English.
I have successfully applied the trick explained here. But I still have one problem.
Quick recap : I display users in a ListView. Users are regrouped by Country, and in the GroupStyle DataTemplate I display the sum of all group related Users.Total, using ...
Is it possible in WPF to bind a ListView (NOT a DataGrid) to a Matrix (Cross-Tab) DataSet in which the columns are unknown beforehand?
Using the Northwind database as an example: the simple query below will return a wellknown dataset which can easily be bound to a listview:
SELECT Year(o.OrderDate) AS [Year], Month(o.OrderDate) AS [Mo...