Forum  General Visual ...  Visual WebGui v...  VirtualDataGridView and CurrencyManager
Previous Previous
 
Next Next
New Post 1/9/2012 11:17 AM
  alexshuv
15 posts
No Ranking


VirtualDataGridView and CurrencyManager 

Hi,

I'm having this issue with a VirtualDataGridView and a CurrencyManager.

I have a VirtualDataGridView on my form. It has a Table as its DataSource. There are more records, than can be displayed in the grid at once (5788 records). I'm attaching a CurrencyManager like this _cm = (CurrencyManager)this.BindingContext[BO.Table]; where BO is an instance of a class that has the DataTable property called Table in it and does not matter in this case.

When I go to the next record with _cm.Position += 1; it scrolls the grid and selects the next record.

When I go to the last record with _cm.Position = _cm.Count - 1; it selects the last record, but does not scroll the grid.

After I scroll manually to the last record, it then starts to scroll to the last record automatically as well when I do _cm.Position = _cm.Count - 1; and the last record is not visible.

If I add a new record to the Table and try to go to it, that is to go to the last row in the grid like this _cm.Position = _cm.Count - 1; it won't scroll to that row, whether I have scrolled to it manually before or not, but it does select the newly added row.

Is this a bug? How to avoid this?

Thanks,

Alex

 

 
New Post 1/9/2012 2:46 PM
  palli
11838 posts
1st Level Poster




Re: VirtualDataGridView and CurrencyManager 

Hi Alex,

This is a known problem and already reported in an open tracker entry. Please view it here and follow up on our progress.

At the moment, the only workaround we have got is written in my recent comment on that entry, scrolling once to the bottom and after that it will show. Please note that this is not related to the last row of data. The same problem will occur if you set the current row to a row within a data block (VirtualDataGridView block) that has not yet been shown.

Palli

 

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/10/2012 10:56 AM
  alexshuv
15 posts
No Ranking


Re: VirtualDataGridView and CurrencyManager 

Hi Palli,

Do you mean the current solution is to scroll down manually?

Thanks,

Alex

 

 
New Post 1/10/2012 1:54 PM
  palli
11838 posts
1st Level Poster




Re: VirtualDataGridView and CurrencyManager 

Hi Alex,

A solution and a workaround are two very different things. At the moment, until we get this tracker entry fixed, a workaround is suggested if we do have one. The workaround may be a good one, or it may not be, it may not even help at all in all cases.

As for this particular entry, I'm currently looking into if we can provide a better workaround and I will comment it on the tracker entry if I do find one. No promises though.

Hope this clarifies,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/11/2012 9:23 AM
  alexshuv
15 posts
No Ranking


Re: VirtualDataGridView and CurrencyManager 

Yes, I meant the workaround, when I said solution, sorry. Thanks.

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  VirtualDataGridView and CurrencyManager
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS