单击搜索按钮显示完整的网格视图保持文本框空! [英] showing full grid view while clicking search button keeping the textbox empty !!

查看:90
本文介绍了单击搜索按钮显示完整的网格视图保持文本框空!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从报表服务器获取数据,以在网格视图中显示数据。我还有一个文本框来搜索网格视图中的特定行。它也显示完美。但我想要的是,当我点击搜索按钮保持文本框为空时,它将显示完整的网格视图?

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 ?

推荐答案

尝试下面的逻辑





if(textBox.text!=)

{

//你搜索代码块;

}

else

{

//将完整数据绑定到网格视图;

}
try below logic


if(textBox.text!="")
{
//you searching code block;
}
else
{
//Bind you full data to grid view;
}


这篇关于单击搜索按钮显示完整的网格视图保持文本框空!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆