Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

How to search in crystal report viewer by text box

$
0
0

I made  this code to search in gridview how can i make it to serch in crystal report  viewer

lblfield.SelectedValue come from radio button list

The method  

grid.DataSource = U.Search(lblfield.SelectedValue, txtsearch.Text);
grid.DataBind();

public DataTable Search(string Field, string Value)
    {
        string query = string.Format("Select UserID, UserTypeID, UserName, Password, FirstName, MiddleName from Users where {0} like'%{1}%'  ", Field, Value);
        return Search(query);
    }


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>