Is there a way to do a find search in gridview?
-
Using C#, I have a gridview where I populate the database from the database. The gridview will display many records. I wish to include a textbox for user to enter the admin number he/she wish to find. And a button for the user to click. The gridview will then filter and show the rows of records of that admin number. How should I work around with it? Should I control the gridview by the textbox or button?
thanks in advance. Much appreciated.
-
Using C#, I have a gridview where I populate the database from the database. The gridview will display many records. I wish to include a textbox for user to enter the admin number he/she wish to find. And a button for the user to click. The gridview will then filter and show the rows of records of that admin number. How should I work around with it? Should I control the gridview by the textbox or button?
thanks in advance. Much appreciated.
Hi there, IMO, the simple way is to repopulate the datasource and bind it to the gridview control to display the search result. Adn you can do in the common way that many other sites do with a textbox for inputting and a button/imagebutton to execute the search.
-
Hi there, IMO, the simple way is to repopulate the datasource and bind it to the gridview control to display the search result. Adn you can do in the common way that many other sites do with a textbox for inputting and a button/imagebutton to execute the search.
minhpc_bk wrote:
And you can do in the common way that many other sites do
Yes I was thinking to do the same thing. But I was wondering how they do it? Is there any sample link?
thanks in advance. Much appreciated.
-
minhpc_bk wrote:
And you can do in the common way that many other sites do
Yes I was thinking to do the same thing. But I was wondering how they do it? Is there any sample link?
thanks in advance. Much appreciated.
-
blurMember wrote:
But I was wondering how they do it? Is there any sample link?
It's not difficult, you can get started with the Starter kits[^]
Hey Thanks!!!! It will be used in the next years to come.
thanks in advance. Much appreciated.