Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if i input name "rahul" in textbox and click on search button then get select record of rahul in gridview,gridview content coming from database.
Posted
Updated 16-Feb-11 2:12am
v4
Comments
Richard MacCutchan 16-Feb-11 7:22am    
Sounds like fun.
Sunasara Imdadhusen 16-Feb-11 7:41am    
did you try before?
somil030 16-Feb-11 7:42am    
no tats y im asking
Wayne Gaylard 16-Feb-11 7:43am    
coll can I try ?
somil030 16-Feb-11 8:00am    
pls

There is this [^]nice article on CP. I am sure you won't need all this functionality and can extract what you want.
 
Share this answer
 
Select Name,LastName,.... from DBname where Name='" & Me.TextBox1.Text & "'
 
Share this answer
 
if u are looking to filter your data based on the string prior to populating the grid (Here, I am assuming that you are using inline SQL query to get the data off the database)
you can use the

Like textbox.text approach

if you are using a stored procedure, you can pass in the text as parameter to the SP and use it with the Like keyword to get required data in the datagrid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900