Hi!
I'm currently working with a sub report, and trying to set the stylename of a textbox dynamically in code based on it's value.
switch (data.Value)
{
case "Value1":
tbxScanState.StyleName = "Stylename1";
break;
case "Value2":
tbxScanState.StyleName = "Stylename2";
break;
}
However, it seems that this changes the stylename for tbxScanState in all of the subreports, rather than just the subreport I'm currently working with. Do you know how I might achieve my goal?
I'm currently working with a sub report, and trying to set the stylename of a textbox dynamically in code based on it's value.
switch (data.Value)
{
case "Value1":
tbxScanState.StyleName = "Stylename1";
break;
case "Value2":
tbxScanState.StyleName = "Stylename2";
break;
}
However, it seems that this changes the stylename for tbxScanState in all of the subreports, rather than just the subreport I'm currently working with. Do you know how I might achieve my goal?