How to populate a DataGrid from a character by character input
-
Hello all, I have a quick question. :confused: I'm trying to populate the data grid based on each character the user enters in a text box. More details: I'm making a user control at which I have a data grid and a text box at which the user enters a customer name for example, clicks a button at which time the results from the database are displayed in the data grid. So if the user entered ‘A’ the data grid automatically displays all the names starting with an ‘A’. then if he adds a ‘B’ the selection is limited to ‘AB’ and so on. The problem I’m facing are, if I used a server side text box even of onTextChange. It only gets invoked after the user enters the entire string and the control loses focus. I also tried to do the following but they didn’t work. 1- tried to use
</code> this seems not to work in the user control, it doesn’t even get into the script block <u>2- Tried to use. </u>A client side java script even handler for onkeyup. The problems with the last 2 approaches are that I also can't invoke any thing from the client side that will force the data grid to update on the server side All your help is really appreciated. Thanks all </x-turndown>