Results 1 to 3 of 3

Thread: [2008] Need Datagridview filtering advice

  1. #1

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    [2008] Need Datagridview filtering advice

    Hi Guys,

    I have a datagridview that's taking a while to load because my table contains almost 5000 records. How can I provide an easy way for clients to filter the grid based on a product name. I was thinking of having labels with each alphabet on my form and when they click a label it filters the bindingsource according to the chosen alphabet. this seems like an awkward solution though. Can someone please give me a better idea. Thanks

  2. #2
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: [2008] Need Datagridview filtering advice

    See if VirtualMode helps in fast rendering of records.

    Similar to your idea is Paging which we see in web applications where records are displayed page-wise. If you set Page Size to 10 then 10 records are displayed per page. So initially only 10 records will be fetched from Database. When you will click next page then the records for that page are displayed and so on. Paging feature is not supported by DataGridView control, you need to implement custom logic for that.

  3. #3

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    Re: [2008] Need Datagridview filtering advice

    thanks for the reply Deepak. Virtualmode did nothing unfortunately. I like your paging idea . Will look into it now

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