Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How to make a "On-Real-Time Responsable" TextBox?

$
0
0

Hello all:

    Maybe it's a very frequent senario, but I still wanna have a discussion and several questions about that:

    【Senario】

     A textBox with a dataGridView, when press some key words inside the TextBox, the dataGridView should immediately show the result from db and bound to the dataGridView.

     【Question】

     How to make the TextBox "On Real Response"?

     I mean if I press "Hello", and during the processing of inputting each letter into the TextBox, each time I have to do a re-search, the UI form must be dead because there are too many requests to the db. I know that I can use threads……,however, what I really want is that there's a machenism that can allow me to cancel or accept the "Search From db and bound to the dataGridView". In details, that is:

    Each time when I change the TextBox's value, there comes a request with the value from textbox and do search from db, and the previous TextBox's value can be cancelled instead of doing the previous search in a background-thread, ect.

    Is net framework having such a machenism now? Or someone can suggest good ideas?

    Many thanks!


ASP.NET Forum
Other Discussion Forums
FreeRice Donate
Issues to report
Free Tech Books Search and Download


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>