Questions tagged [virtualmode]

52 questions
12
votes
5 answers

Default implementation for ListView OwnerDraw

I have a ListView where I wish to tweak the drawing of items (for example highlighting certain strings in list view itmes), however I don't want to radically alter the way that items are displayed. I have set the OwnerDraw to true and can get my…
Justin
  • 80,106
  • 47
  • 208
  • 350
12
votes
3 answers

How to find out which DataGridView rows are currently onscreen?

In my C# (2010) application I have a DataGridView in Virtual Mode which holds several thousand rows. Is it possible to find out which cells are onscreen at the moment?
Seidleroni
  • 964
  • 3
  • 12
  • 29
6
votes
2 answers

WPF textbox in "virtual" mode

Is it possible to use TextBox in "virtual" mode. I want to supply text on demand, when user scrolls through the document.
Konstantin Spirin
  • 17,942
  • 12
  • 64
  • 88
5
votes
4 answers

Cannot access the selected items collection when the ListView is in virtual mode?

I have a ListView in Virtual Mode. I wanna to access SelectedItems property. But when I use ListView1.SelectedItems , I receive the following Exception : Cannot access the selected items collection when the ListView is in virtual mode How can I…
Mohammad Dayyan
  • 18,338
  • 35
  • 143
  • 207
5
votes
1 answer

VirtualMode in Gtk.ListStore?

I'm looking for a feature within the Gtk.ListStore that working like the ListView.VirtualMode in Winforms. Is there something like that?
DxCK
  • 4,052
  • 6
  • 44
  • 86
5
votes
1 answer

DataGridView virtual mode column divider double click autosize

I have a winform applicaction with a DataGridView in Virtual mode, everything is working great! the only problem is that when i hit double click en a column divider, the control is trying to fit the column width to all cells, not only the displayed…
Fraga
  • 1,277
  • 1
  • 13
  • 40
4
votes
1 answer

How to show icon on all listview items in virtual mode (C#)

I'm using virtual mode of listview to show a larg data. But I don't know how to show image for each item. Who can help me ? I wrote private void ListContact_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e) { MyContact…
Võ Quang Hòa
  • 2,039
  • 2
  • 20
  • 26
4
votes
1 answer

How do I populate a ListView in virtual mode asynchronously?

I'd like to display records from our database in a listview - but retrieves can take a long time. I can use RetrieveVirtualItem to tell me when a new ListViewItem is needed, add a dummy item, and start a retrieve; but what do I do with the record…
Simon
  • 24,010
  • 36
  • 139
  • 249
4
votes
4 answers

Flickering ListView in virtual mode

I found a not so funny bug in the default ListView (not owner drawed!). It flickers heavily when items are added constantly into it (by using Timer to example) and user is trying to see items slightly away from selected item (scrolled either up or…
Sinatr
  • 18,856
  • 9
  • 75
  • 248
4
votes
1 answer

C# DataGridView virtual mode: Enable sorting

Is there a way to sort a DataGridView in virtual mode? I have implemented a Gridview in virtual mode following this microsoft example: http://msdn.microsoft.com/de-de/library/ms171624.aspx . Also I have modified the example to be able to write data…
Chris
  • 695
  • 8
  • 21
4
votes
2 answers

C# ListView in VirtualMode flickers when the selected item is not visible

I know it sounds complicated to reproduce but please follow me: You have a ListView with VirtualMode = true. Select an item, scroll down so that the item selected gets outside the visual area and then try to add another item to the ListView. You…
Andrei Stanescu
  • 6,203
  • 4
  • 33
  • 60
3
votes
0 answers

Getting Checked Items in a ListView in Virtual Mode

How can I iterate through all Checked Items in a ListView control that is operating in Virtual Mode? I am using the CacheVirtualItems and RetrieveVirtualItem event handlers and implemented a basic cache handling. Documentation says in Virtual Mode…
Lord of Scripts
  • 3,420
  • 5
  • 35
  • 59
3
votes
3 answers

Looking for UI library for .NET and Mono

I'm looking for a UI library for .NET and Mono, something like Gtk#, but with support for 64-bit (on Windows too), and with some widget like WinForm's ListView, with VirtualMode. I don't want to use WinForms and WPF. Is there any…
Alon Gubkin
  • 53,054
  • 52
  • 181
  • 282
3
votes
3 answers

WinForms ListView draws HELL SLOW in Windows 7 Compared to XP

I'm using ListView in VirtualMode and Details View with small icons. This ListView have like 100,000 items inside. The problem is that drawing this listview is much slower in Windows 7 compared to XP. You can fill the slow drawing while scrolling…
DxCK
  • 4,052
  • 6
  • 44
  • 86
3
votes
1 answer

How do I update a WinForms ListView when using VirtualMode=True?

I have an app with a large ListView which is terribly slow so I'm implementing VirtualMode. MSDN does not seem to cover how I would add and delete new items in the middle of the listview. For example, the ListView has 1000 items (representing files…
Ryan O'Neill
  • 5,065
  • 4
  • 44
  • 63
1
2 3 4