Gridview filtering using textbox in asp.net
问题 i want to know as how to search or filter records in a gridview dynamically based on the character(s) entered on a textbox. What is the best way to achieve this? Any sample codes or examples will be really helpful. 回答1: The trick here is to make databind only when the text change on the search box, but you must always set the datasource select command code . So you add a text box, and a button that say, submit, and you have the following: OnPageLoad -> if(SearchContron.Text.Length > 0)