-1

I have a problem with dataGridView in C#. I want to select 100 by 100 rows of data. The table is very big with 100000 rows and growing. So if i select all rows it takes too long to fill the dataGridView.

So on start i would select 100 rows, and when the user comes to the 100 row it has to select 100 another rows, when he comes to 200 row, another 100 and so on...

Now i'm doing this like:

SELECT a.vz_id, a.ste_rac_nal, a.ste_pak, a.dat_pak, A.ISO20022_53_VALID, A.ISO20022_53_IZPISEK
                FROM VZ_IZPISKI a
                where rownum < 100
                order by A.VZ_ID desc

If you don't understand what i mean please comment

Marko Leben
  • 21
  • 1
  • 5

1 Answers1

0

Implement paging on server side. You should only return the data that user is viewing currently. It will increase responsiveness of your application as well.

Ehsan
  • 31,833
  • 6
  • 56
  • 65