CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    4

    Loading 24,000 rows into a DataGrid

    I need HELP to figure out exactly WHERE and why loading large sets of data (24,000 rows) into a C# 3.5 .NET datagrid is occurring, and possible resolutions, links to similar issues or other areas to investigate.

    When the datagrid is loaded, we get random results….it rarely loads correctly (and loads differently in testing vs. production environment). When it does load, the datagrid displays some rows, but ends in random HTML tags. Other times it refreshes the page to its initial on_load state.

    In the hidden input _EVENTVALIDATION tag, it looks as though there is almost 9MB in viewstate (copying it results in a 8.8 MB file).

    When I set SmartvNavigation = False, there is more of a chance the datagrid loads correctly, but then I lose all of SmartNav’s functionality. I’ve tried instead using MaintainScrollPositionOnPostBack=True, but received the same random display errors seen when having SmartNavigation=True.

    Wondering if changing settings (maxRequestLength, executionTimeout or AppRequestQueueLimit) in the web.config file would have a favorable effect.

    Any suggestions or resolution to loading large sets of data into a datagrid is EXTREMELY helpful!!!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Loading 24,000 rows into a DataGrid

    Check out DevExpress.com's Grid Controls. They load only a screens worth of data at once, and pages thru them automatically. I suppose that you could create the same thing, but they add a lot more features.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured