L
Laura Carr
I have been getting the following error fro an event in an
rpx.cs file. The error is as follows: An object reference
is required for the nonstatic field, method, or
property 'DataDynamics.ActiveReports.ActiveReport.Sections'
Can someone point me in the right direction in terms of
where I am going wrong.
private void Detail_Format(object sender, System.EventArgs
eArgs)
{
if(((CheckBox)Test.Sections["Detail"].Controls
["chcomplaint"]).DataField == "1")
{
((CheckBox)Test.Sections["Detail"].Controls
["chcomplaint"]).Checked = true;
}
else
{
((CheckBox)Test.Sections["Detail"].Controls
["chcomplaint"]).Checked = false;
}
}
rpx.cs file. The error is as follows: An object reference
is required for the nonstatic field, method, or
property 'DataDynamics.ActiveReports.ActiveReport.Sections'
Can someone point me in the right direction in terms of
where I am going wrong.
private void Detail_Format(object sender, System.EventArgs
eArgs)
{
if(((CheckBox)Test.Sections["Detail"].Controls
["chcomplaint"]).DataField == "1")
{
((CheckBox)Test.Sections["Detail"].Controls
["chcomplaint"]).Checked = true;
}
else
{
((CheckBox)Test.Sections["Detail"].Controls
["chcomplaint"]).Checked = false;
}
}