virtualmode

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 on disk) and after the initial population of the ListView (by the RetrieveVirtualItem eve...

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 when the database returns it? I can't update the ListView's Items collection while the Lis...

How to change the row position of virtual mode DataGridView?

How to change the row position of virtual mode DataGridView? I am using Windows Forms. ...

C# Exception when retrieving rows from a datagrid in virtual mode

Hi all, I keep getting an exception (see below) when I retrieve a list of rows from a Virtual Mode datagrid, this only happens when I have more rows than I can display on screen and it doesn't happen every time. Is there anything I'm missing with regards to virtual mode? Update> The image below shows the problem, the index is now outs...

How to sort ListView items when ListView is in VirtualMode?

I realize i have to sort the collection where the ListView gathers the items from: ListView listCollection = new ListView(); But this doesn't seem to work unless the ListView is added as a GUI-control to the form, that in turn makes it very slow to add items to, hence why i have to use VirtualMode on my GUI-ListView in the first place. ...

DataGridView VirtualMode

Weird thing happened to me ;) I set the DataGridView.VirtualMode property to true, handle the CellValueNeeded event, but as I noticed it fires for every row from the database. For example, I have a table with 300.000 records and the event fires for each one of them. Has anyone got a clue why this happens? ...

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 in 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 will see that for a split second it behaves abnormally and see somekind of flicker. If you e...

empty Datagridview in virtualmode with millions of rows slows

I am trying to create datagridview connected to sqlserver. But it seems that even in simple datagridview cannot handle quickly millions of rows. And so scrolled to upper rows datagridview updates noticably faster, that scrolled down to last row. The effect can be seen: Public Class Form1 Private Sub Form1_Load(ByVal sender As O...

Disable controls on certain items in DataRepeater control

I'm using the DataRepeater control from the Visual Basic Power Pack in my C# Winforms application. The control is unbound, operating in VirtualMode. I'm displaying multiple items in this control. Depending on certain criteria, I want to disable a button in the control. I've tried the following in the _DrawItem event of the data repea...

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. ...

Is WinForms ListView in VirtualMode limited to 100,000,000 rows?

I have some grid scenario with > 500,000,000 rows I would like to display in ListView. If I artificially limit my ListView to display 100,000,000: _listView.VirtualListSize = _data.Count; if (_listView.VirtualListSize > 100000000) _listView.VirtualListSize = 100000000; Everything works fine (In VirtualMode naturally). When I cha...

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? ...

Is there a workaround for Linux mono's refusal to acknowledge that I have resized the columns of my VirtualMode ListView?

When I resize a column, it does not redraw the data with the updated alignment. I've tried Invalidating, Refreshing, and a few other things. Nothing has worked. Does anyone know a workaround? I have not tried this in mono for Windows. To see what I mean, drop this control on a form, and run it in mono for Linux: using System; using...

C# Virtual Mode List View Click 1 Selects More Than One Items

I have a list view with virtual mode set to true and other things. It doing ok. But 1) Say there are 25 items and 15 of them are visible, that is to see the rest of 10 items need to scroll down. 2) Before scrolling swap two items, say myItems[0], it must be visible & myItems[20], it must be not visible scroll required. 3) Now select t...

Event handler not removing itself?

At the beginning of a VB .NET function I remove an event handler and add it again at the end of the function because the function's code would trigger those events and I do not want them to trigger for the duration of the function. This usually works, but I have run into a few situations where the event still gets called even though I h...

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 the ListView or while multi-selecting items. Additionally, i noticed that drawing become...

ListView [VirtualMode] change selected index

VirtualMode = true MultiSelect = false I can get selected index item, but how change it? SelectedIndices readonly. ...

Looking for UI library for .NET and Mono

Hi 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 alternative? Thanks. ...

Focus an item in ListView with VirtualMode enabled

Hi I have a ListView in VirtualMode. I need a way to set focus to specific item. The FocusedItem is not good for the VirtualMode, I need a way to set FocusedIndex or something like that, but didn't see any property like that. Thanks. ...

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 access to ListView1.SelectedItems in VirtualMode. ...