C1.C1Report Namespace > Field Class : Name Property |
The field name can be used as an index into the control's C1Report.Fields collection.
Field names are also used to identify fields in VBScript expressions, as shown in the example below.
Duplicate and empty field names are allowed, but should be avoided if you plan to use the field names in scripts or as indexers.
_c1r.Sections.Fields["sampleField"].ForeColor = Color.Black; _c1r.Sections.Detail.OnFormat = "sampleField.ForeColor = iif(someValue < 5, vbRed, vbBlack)";
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2