双击 “查询” 按钮,在它的单击事件里面写呗。将查询出来的dataset或者datatable绑定到gridview控件就行了。this.(你的gridview名字).DataSource=你查询到的数据源;this.(你的gridview名字)..DataBind();