Set checked items in a variable
Posted: Thu Nov 08, 2012 4:09 pm
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?
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?