I have a solution that works this way:
1- Comunicates with a server via WCF and requests a chunk of data to populate a gridview (kinda like a log presenter).
2- Populates the gridview.
3- As the user scrolls down, it fetches another chunk of data and populate the grid; and so on.
The problem is, if new data comes in or out, let's say user is at page 3 and we have a new page created in the db(a bunch of registers), when the user scrolls down, it will chunk the same data from last page, which gives me error, since I'm using a Dictionary after the IList. (same key). The grid populates itself by the index of the rows, so it doesn't know if new data have been inserted and when it fecthes data, it gets the next index(which is not the "real" index seen from the DB view since new data have been inserted) in a wrong way.
So, what would be the best approach to make that work ?
I'm using C# with WCF and Form (not WPF).
Thanks !
Dynamic Content using a Grid
Page 1 of 11 Replies - 108 Views - Last Post: 06 September 2012 - 01:32 PM
Replies To: Dynamic Content using a Grid
#2
Re: Dynamic Content using a Grid
Posted 06 September 2012 - 01:32 PM
It sounds like you are implementing your own version of the DataGridView in virtual mode. Have you considered using the built in support for it:
http://msdn.microsof...ibrary/15a31akc
http://msdn.microsof...ibrary/15a31akc
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|