Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WinForms DataGrid data display limit

WinForms DataGrid data display limit

Scheduled Pinned Locked Moved C#
performancecsharpwinformsalgorithmsquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rakesh Rajan
    wrote on last edited by
    #1

    Hi, Is there a limit to the number of rows (amount of data) a datagrid can display in a datagrid? Is there any internal optimization in the datagrid which fetches data from the dataset only for those rows which are visible to the user? ( I saw someone say so in a NG) Is there a limit similarly for datasets? ( I have read now and again it's only limited by the client's systems' memory...but wanted to make sure :) ) I am concerned since i need to display ALL the data (around 10K records). Thanks Rakesh

    H 1 Reply Last reply
    0
    • R Rakesh Rajan

      Hi, Is there a limit to the number of rows (amount of data) a datagrid can display in a datagrid? Is there any internal optimization in the datagrid which fetches data from the dataset only for those rows which are visible to the user? ( I saw someone say so in a NG) Is there a limit similarly for datasets? ( I have read now and again it's only limited by the client's systems' memory...but wanted to make sure :) ) I am concerned since i need to display ALL the data (around 10K records). Thanks Rakesh

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Rakesh Rajan wrote: Is there a limit to the number of rows (amount of data) a datagrid can display in a datagrid? See Process.MaxWorkingSet. This gets or sets the maximum amount of memory allowed in memory for the given Process. Rakesh Rajan wrote: Is there any internal optimization in the datagrid which fetches data from the dataset only for those rows which are visible to the user? Not yet, at least in the .NET base class library. In .NET 2.0 they have introduced several new control classes, including a GridView[^] which supports virtual lists, which is to what you're referring. There's nothing from stopping you now (there was a good article a LONG time ago about how to do this even in DHTML), but the burden is on you unless you want to buy a commercial solution like a couple from ComponentOne[^].

      -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups