Write a sp and send text box value in one parameter using sql command object.
Query will be
select * from TableName where TableField = @TextBoxValue
Now, using run cmd.ExecuteNonQuery() and using dataadapter fill data to dataset. and bind this dataset to gridview.