Page 1 of 1

Set checked items in a variable

Posted: Thu Nov 08, 2012 4:09 pm
by terricide
Hi
I've created a variable that is binded to two columns in my database.
My variable is stored as an IntList.
The problem I am having is that when the report first launches every item in the list is checked.
I want to default the list to nothing checked? Is that possible?

I've been trying to use reflection to do this in the load event and/or the Page1.AfterPrint event

var type = stiReport.CompiledReport.GetType();
var prop = type.GetField("PowerPolicyList");
prop.SetValue(stiReport.CompiledReport, new IntList());

or

var type = stiReport.CompiledReport.GetType();
var prop = type.GetField("PowerPolicyList");
var list = prop.GetValue(stiReport.CompiledReport) as IntList;
list.Clear();

Any ideas?

Re: Set checked items in a variable

Posted: Fri Nov 09, 2012 8:16 am
by HighAley
Hello.

Could you send us a sample project which reproduces your issue?

Thank you.

Re: Set checked items in a variable

Posted: Tue Jul 23, 2024 4:05 am
by DavidLee82
I am having the same issue.

Upon preview or load everything is checked by default. I would like it so nothing is checked by default on load. Can you please add an option to change the behavior of this?

Re: Set checked items in a variable

Posted: Wed Jul 24, 2024 11:35 am
by Lech Kulikowski
Hello,

You ca use the Checked property for the Variable.

Thank you.