ActiveReports 14 .NET Edition
GrapeCity.ActiveReports Assembly / GrapeCity.ActiveReports.SectionReportModel Namespace / Parameter Class / Key Property

In This Topic
    Key Property (Parameter)
    In This Topic
    Unique name of the parameter.
    Public Property Key As String
    public string Key {get; set;}

    Property Value

    A string value that represents the unique name of the parameter.
    Used to reference the parameter in the parameters collection and to locate the different placeholder locations in the SQL query where the parameter value will be inserted.
    private void SectionReport1_ReportStart(object sender, System.EventArgs eArgs)
        this.Parameters[0].DefaultValue = "Germany";
        this.Parameters[0].Key = "country";
        this.Parameters[0].Prompt = "Country: ";
        this.Parameters[0].Tag = "some extra data";
        this.Parameters[0].Type = GrapeCity.ActiveReports.SectionReportModel.Parameter.DataType.String;
    Private Sub SectionReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
        Me.Parameters(0).DefaultValue = "Germany"
        Me.Parameters(0).Key = "country"
        Me.Parameters(0).Prompt = "Country: "
        Me.Parameters(0).Tag = "Some extra data"
        Me.Parameters(0).Type = GrapeCity.ActiveReports.SectionReportModel.Parameter.DataType.String
    End Sub
    See Also