Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I fetched data from report server to show the data in a grid view. i also have a text box to search an specific row in a grid view.It is also showing perfectly. But what i want is, when i click the search button keeping the text box empty, it will show the full grid view ?
Posted

1 solution

try below logic


if(textBox.text!="")
{
//you searching code block;
}
else
{
//Bind you full data to grid view;
}
 
Share this answer
 
Comments
Hapisha 19-Sep-13 8:10am    
thanks salman622, i just used textBox.text.trim() ! ="" instead of textBox.text!="" .
and my problem is solved. :)

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