How to implement search option in Gridview.

Posted by Sathiya_Narayanan under ASP.NET on 8/13/2012 | Points: 10 | Views : 1675 | Status : [Member] | Replies : 4
Hi,

I am appliacation, how to use search option in gridview it should have only a textbox no search buttons.
when user entering a word at simultaneously grid should bind without any search button.
How to do this if any one knows give idea or website reference link.





Thanks,

SATHIYANARAYANAN


Responses

Posted by: Ranjeet_8 on: 8/13/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Hi..
You can use Text_ChangedEvent
For eg :
<asp:TextBox ID="Txt_Search" runat="server" ontextchanged="Txt_Search_TextChanged"></asp:TextBox>
  

protected void Txt_Search_TextChanged(object sender, EventArgs e)
{
// Your Search Query here.
}



Sathiya_Narayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sathiya_Narayanan on: 8/13/2012 [Member] Starter | Points: 25

Up
0
Down
No its not working..

SATHIYANARAYANAN

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 8/13/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
can u please share ur sample page ??

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Laghaterohan on: 8/13/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

You can use Datatable plugin instead coz search therein filters the data in grid as and when user types in the search box.




Best Regards,
Rohan Laghate

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response