public GridViewSummary(string col, string formatString, SummaryOperation op, GridViewGroup grp)
     : this(col, grp)
 {
     this._formatString = formatString;
     this._operation = op;
     this._customOperation = null;
     this._getSummaryMethod = null;
 }
 public GridViewSummary(string col, string formatString, CustomSummaryOperation op, SummaryResultMethod getResult, GridViewGroup grp)
     : this(col, grp)
 {
     this._formatString = formatString;
     this._operation = SummaryOperation.Custom;
     this._customOperation = op;
     this._getSummaryMethod = getResult;
 }
Exemple #3
0
 public GridViewSummary(string col, string formatString, CustomSummaryOperation op, SummaryResultMethod getResult, GridViewGroup grp)
     : this(col, grp)
 {
     this._formatString     = formatString;
     this._operation        = SummaryOperation.Custom;
     this._customOperation  = op;
     this._getSummaryMethod = getResult;
 }
Exemple #4
0
 public GridViewSummary(string col, string formatString, SummaryOperation op, GridViewGroup grp)
     : this(col, grp)
 {
     this._formatString     = formatString;
     this._operation        = op;
     this._customOperation  = null;
     this._getSummaryMethod = null;
 }
Exemple #5
0
        public GridViewSummary RegisterSummary(string column, string formatString, CustomSummaryOperation operation,
                                               SummaryResultMethod getResult)
        {
            // TO DO: Perform column validation...
            GridViewSummary s = new GridViewSummary(column, formatString, operation, getResult, null);

            mGeneralSummaries.Add(s);

            // if general summaries are displayed in the footer, it must be set to visible
            if (useFooter)
            {
                mGrid.ShowFooter = true;
            }

            return(s);
        }
Exemple #6
0
        public GridViewSummary RegisterSummary(string column, string formatString, CustomSummaryOperation operation,
                                               SummaryResultMethod getResult, string groupName)
        {
            GridViewGroup group = mGroups[groupName];

            if (group == null)
            {
                throw new Exception(String.Format(GROUP_NOT_FOUND, groupName));
            }

            // TO DO: Perform column validation...
            GridViewSummary s = new GridViewSummary(column, formatString, operation, getResult, group);

            group.AddSummary(s);

            return(s);
        }
Exemple #7
0
 public GridViewSummary(string col, CustomSummaryOperation op, SummaryResultMethod getResult, GridViewGroup grp) : this(col, String.Empty, op, getResult, grp)
 {
 }
 public GridViewSummary(string col, CustomSummaryOperation op, SummaryResultMethod getResult, GridViewGroup grp)
     : this(col, String.Empty, op, getResult, grp)
 {
 }
Exemple #9
0
 public GridViewSummary RegisterSummary(string column, CustomSummaryOperation operation, SummaryResultMethod getResult, string groupName)
 {
     return(RegisterSummary(column, String.Empty, operation, getResult, groupName));
 }
Exemple #10
0
    public GridViewSummary RegisterSummary(string column, string formatString, CustomSummaryOperation operation, SummaryResultMethod getResult, string groupName)
    {
        GridViewGroup group = mGroups[groupName];
        if (group == null)
        {
            throw new Exception(String.Format(GROUP_NOT_FOUND, groupName));
        }

        // TO DO: Perform column validation...
        GridViewSummary s = new GridViewSummary(column, formatString, operation, getResult, group);
        group.AddSummary(s);

        return s;
    }
Exemple #11
0
 public GridViewSummary RegisterSummary(string column, CustomSummaryOperation operation, SummaryResultMethod getResult, string groupName)
 {
     return RegisterSummary(column, String.Empty, operation, getResult, groupName);
 }
Exemple #12
0
    public GridViewSummary RegisterSummary(string column, string formatString, CustomSummaryOperation operation, SummaryResultMethod getResult)
    {
        // TO DO: Perform column validation...
        GridViewSummary s = new GridViewSummary(column, formatString, operation, getResult, null);
        mGeneralSummaries.Add(s);

        // if general summaries are displayed in the footer, it must be set to visible
        if (useFooter) mGrid.ShowFooter = true;

        return s;
    }
Exemple #13
0
    public GridViewSummary RegisterSummary(string column, string formatString, CustomSummaryOperation operation, SummaryResultMethod getResult)
    {
        GridViewSummary s = new GridViewSummary(column, formatString, operation, getResult, null);

        mGeneralSummaries.Add(s);

        if (useFooter)
        {
            mGrid.ShowFooter = true;
        }

        return(s);
    }