Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3305624
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:11:29+00:00 2026-05-17T21:11:29+00:00

My standalone Windows app. is written on C# 2008 and back-end is MySQL 5.1.

  • 0

My standalone Windows app. is written on C# 2008 and back-end is MySQL 5.1.

In a Windows Form, I have a TextBox control on top and a DataGridView below. Initially, as the Form loads, the DataGridView is filled with Item Names of products in sorted order. As and when the user starts typing few letters in the TextBox, the records in the DataGridView starts filtering.

At present a SQL query with LIKE is fired. Though there are no performance issues even after two years, but I am wondering that it is not a better way to fire this query after each key-stroke.

The alternative in my mind is to take all the Item Names in a Collection as the form loads. As the user types, I may use LINQ to filter records from the Collection.

But there is one problem. First, I want to store rows with 5 columns in the Collection, and secondly, there are so many Items, it will consume more memory to hold.

And there is a third concern also. Even if all the five columns are somehow stored in a Collection, how to populate the DataGridView each time with a new set of records when the user starts typing keywords?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:11:29+00:00Added an answer on May 17, 2026 at 9:11 pm

    You can make use of ICollectionView to filter and sort data. Try it with the datasource of your grid.

    i am sure that it will result in the more performance benefit.

    do you use paging also on your grid?

    See it here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows .NET standalone app. and I want to include PostgreSQL database
I have a windows app which has MySQL backend. I have wampserver installed on
I have written a program that is sort of an unofficial, standalone plugin for
I have a WinForms Form that used to be a standalone application, but is
I have recently gone through a bunch of standalone utility apps written in VB6
I've managed to package my PyQt4 app as a standalone application on windows, it
My app. is in C# 3.5 and MySQL 5.1. It is a Windows based
In Delphi you can create a standalone Windows VCL Forms application. You can also
I want compile some GUI into a Windows standalone application ( *.exe ). The
In my standalone GUI application, I will install a Windows Closed handle on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.