views:

342

answers:

2

alt text

When I select values from drop down then click on show button it should show the crystal report for that selection.

Thanks,

A: 

string myQuery = "{Report.FieldName} < '1000'";

crystalReportViewer.SelectionFormula = myQuery;

Henrico Dolfing
A: 

IF u are filtering via programatically u can type, crystalreportViewr1.selectionformula="{Report.Fieldname}='"+filterdata+"'"; this is for filter the string data type. for int data type to be filtered, crystalreportViewr1.selectionformula="{Report.Fieldname}="+filterdata;

Jegadesh S