Questions tagged [virtualmode]

52 questions
0
votes
1 answer

Set Datasource of DataGridViewComboBoxCell in Virtual mode

When using virtual mode with DataGridView, I am subscribing to the CellValueNeeded event to get data on the fly. In the handler for that I have logic to differentiate between the columns, and if it is a DataGridViewComboBoxColumn, I want to give it…
eLymar
  • 153
  • 1
  • 7
0
votes
1 answer

How do you QUICKLY remove duplicates from large datagridview?

I need to be able to remove duplicate entries in a datagridview quickly. Unfortunetly the way I am doing it can take a few minutes with anything above 100K items. Here is the code I am using: Dim wordlist As New List(Of String) Dim numCols As…
Zach Johnson
  • 1,473
  • 3
  • 18
  • 31
0
votes
1 answer

Check if selected item is visible [virtual ListView in details view]

Is there any good/short solution to the subj? I can think of: get TopItem index (in VirtualMode can it be null before item is created?), if index of needed item is less, then it is invisible, otherwise get bottom visible index (top index +…
Sinatr
  • 18,856
  • 9
  • 75
  • 248
0
votes
1 answer

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…
user219169
0
votes
0 answers

C# winform, how to set DataGridView VirtualMode in one or more DataGridView

I'm working on a windows form project. In my form I have two DataGridViews. I'd like to set two DataGridViews to DataGridView.VirtualMode. Is there any efficient way to do this task except creating twice code like following? Seeking your advice,…
hanabi
  • 11
  • 3
0
votes
4 answers

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

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…
JamesM
-1
votes
1 answer

Search for ListViewItem in VirtualMode

I'm having some trouble doing a search in a ListView when using VirtualMode. The ListView populates just find using RetrieveVirtualItem event. I have a text box and "Search" button on my form. private void btnSearch_Click(object sender, EventArgs…
James
  • 319
  • 3
  • 19
1 2 3
4