1 Replies - 108 Views - Last Post: 06 September 2012 - 01:32 PM Rate Topic: -----

#1 leonardo2204  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 09-April 12

Dynamic Content using a Grid

Posted 06 September 2012 - 01:19 PM

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 !

Is This A Good Question/Topic? 0
  • +

Replies To: Dynamic Content using a Grid

#2 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 1896
  • View blog
  • Posts: 5,687
  • Joined: 05-May 12

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1