Page 1 of 1

External Filter

Posted: Fri Mar 13, 2009 11:21 am
by marco_vinicio
I will build my own "filter builder".
There's some way to apply filters in datasource's report?
Some thing like this:

relatorio.Dictionary.DataSources["rs_formulario"].DataTable.Select("cod_usuario = 1")

Thanks...

External Filter

Posted: Mon Mar 16, 2009 1:23 pm
by Jan
Hello Marcio,

You can change/add filters in report, but only before report compilation. Please see example:

Code: Select all

StiFilter filter = new StiFilter("cod_usuario == 1");
StiDataBand data = report.GetComponentByName("DataBand2") as StiDataBand;
data.Filters.Add(filter);
Thank you.