Questions tagged [virtualmode]
53 questions
16
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
- 1,044
- 3
- 15
- 31
15
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
- 84,773
- 49
- 224
- 367
6
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,361
- 2
- 15
- 47
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
- 20,609
- 15
- 72
- 90
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
- 21,578
- 41
- 164
- 232
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,402
- 7
- 50
- 89
5
votes
1 answer
implementing virtual mode for a datagridview that is databound
A general question for advice on the implementation.
I've got a collection bound to a datagridview.
BindingList allLines = new BindingList();
dataGridView1.DataSource = allLines;
I want to implement virtual mode because the collection…

Jimmy
- 2,191
- 6
- 25
- 45
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,688
- 3
- 27
- 31
4
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,579
- 5
- 41
- 62
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
- 25,468
- 44
- 152
- 266
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
- 20,892
- 15
- 90
- 319
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
- 835
- 12
- 27
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,353
- 4
- 35
- 64
3
votes
1 answer
DataGridView, Virtual Mode and "lags"
My code looks as follows:
private void dataGridView4_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e)
{
Records recordsTmp = null;
recordsTmp = (Records)this.ArrayOfRecords[e.RowIndex]; //ArrayList…

user1017258
- 53
- 2
- 6
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
- 56,458
- 54
- 195
- 288