Is there a way to set a vertical border on a WPF GridView?
The following works great for some nice horizontal borders. Is there a good way to add vertical borders to the GridView that lives inside this ListView?
<Style x:Key="ListViewItemBase" TargetType="{x:Type ListViewItem}">
<Setter Property="BorderThickness" Value="1" />
<Set...
I have recently stumbled across an issue where the WPF ListView control seems to be restricting the ability to sort its items. Specifically, I am having a great deal of trouble trying to get a SortDescription to recognise nested properties (properties of properties).
For straight-forward sorting by propreties, the following line should ...
Hi, I’m programming one easy C# application, and i need onScroll event on Listview. So i created class ListviewEx witch inherits original ListView. I found how to detect scroll message from WinAPI and i modified WndProc method.
Now i have this WndProc:
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
i...
The WPF ListView control allows to re-order of columns by drag and drop.
Is there any way to disable it?
I hope some WPF guru can help me. :)
...
Hi, I have another problem with ListView :( Now I need to move items in group (up, down, to the beginning, to the end), but ListView is displaying moved items always at the end.
Here is sample code for moving item to the beginning:
if (1 == listView1.SelectedItems.Count)
{
ListViewItem item = listView1.SelectedItems[0]...
I need to keep my columns header, so people can see what data is displayed there, but I can not find if it is possible, or how to do it. Also will be nice to add a navigation bar to the list. Any suggestions?
Thanks,
...
I am trying to do use .Select extension method on ListView.SelectedItems which is SelectedListViewItemCollection, but .Select doesn't show up in intellisense.
I can use foreach on SelectedListViewItemCollection, so it must have implemented IEnumerable. I just checked on MSDN, and it certainly does. Then why can't the LINQ extension meth...
Hello,
On the ListView control, I need an event to fire after the selection changes, but only once per user action. If I simply use the SelectedIndexChanged, that event fires twice in most cases (once when the previous element is unselected and once more when the new element is selected) event if the user only clicked on the control onc...
I have a ListView with an EditItemTemplate that calls a method onItemEditing.
Within my ListView I have a CheckBoxList bound using LINQ.
In my onItemEditing method, I'm trying to check certain CheckBoxes if they are present in a look up table that links users with sectors.
However, when I load the EditItemTemplate none of the CheckBox...
Hi,
I have 3 controls in a WPF window.. a textbox, listbox and listview.
The textbox is like a searching textbox, where i search for Folder's in a particular folder, the list of searched folders will be displayed in listbox. I am able to do until this part.
Now, if I select any of the displayed folders in the listbox, then the files a...
I'm trying to bind some data to a WPF listview. One of the properties of my data type is of type byte[] and I'd like it to be shown as a comma-delimited string, so for example { 12, 54 } would be shown as 12, 54 rather than as Byte[] Array. I think I want to make a custom DataTemplate but I'm not sure. Is that the best way? If so, ho...
Hi good people, need some help on how to approach the following scenario:
if I select Products it expands to Product Details, and once clicked
it expands to product SKU (not part of the details), so altogether this
is 3 levels. if anyone has experience I'd appreciate it very much if you could
share it.
thanks!
...
How can you download a file from within a listview (or gridview) that is nested within an UpdatePanel?
...
Hi, i have a c# winform app that contains a listview control. i would like to be able to drag items from the listview onto the desktop. does any one know how to do this?
I am vaguely familiar with the dodragdrop() method but not sure of the proper implementation.
Ta!
...
Hi All,
I have a listview(lstViewOwner) which should display the folder and its files.
I select the path by browsing.. once I give the path to a textbox, based on the path, it should open the folders and its files in a hierarchial way.. I mean
Folder1
Excel1.xls
Excel2.xls
Excel3.xls
Folder2
Excel1.xls
Excel2.xls
Actually ...
Hey,
I have a QListView from which I obtain a QAbstractItemModel with list->model();
After this, I want to connect the dataChanged signal to a custom QObject of mine:
if( QObject::connect(model, SIGNAL(dataChanged (const QModelIndex , const QModelIndex ) ),
customObject_,SLOT(onText(const QModelIndex , const Q...
I want to do something I saw during a WPF demo some years ago. I don't know how it was done but I know it can be done so that is my problem.
In the demo there was an WPF application with a ListView or ListBox with a lot of items. Every the ListView was reordered the items changed places in the list. But the ListView was not just refresh...
Hi,
I have a page with a listview control and a datapager control. The listviews datasource is set programatically using this code:
Dim dal as new dalDataContext
Dim bookmarks = From data In dal.getData(userid)
listview1.DataSource = bookmarks
listview1.DataBind()
When i test this page in a browser it comes up with the error: 'ListV...
How do I sort columns of integers in a ListView
c#, .net 2.0, Winform
System.Windows.Forms.ListView
...
Is there a way I can programatically perform a Fling on a listview? I know there is monkey that does all these things but that requires a computer connection with adb etc etc. I want to do it with my app on any phone, without monkey.
Thanks,
Faisal
...