Beispiel #1
0
 protected void ASPxGridView1_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
 {
     if (e.Item.FieldName == "CategoryID")
     {
         e.Text = string.Format("Sum = {0}", Convert.ToDouble(e.Value) * Convert.ToDouble(ASPxSpinEdit1.Value));
     }
 }
Beispiel #2
0
    protected void ASPxGridView1_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
    {
        ASPxGridView grid = (ASPxGridView)sender;

        if (e.IsGroupSummary)
        {
            object summaryText = grid.GetRowValues(e.VisibleIndex, string.Empty);
            if (summaryText != null)
            {
                e.Item.DisplayFormat = e.Item.DisplayFormat.Replace("#####", summaryText.ToString());
                e.Text = e.Item.DisplayFormat.Replace("*****", e.Value.ToString());
            }
        }
    }
Beispiel #3
0
 protected void ASPxGridView1_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
 {
     try
     {
         if (e.Item.FieldName.Contains("d_"))
         {
             double value = double.Parse(e.Value.ToString());
             string field = e.Item.FieldName.Replace("d_", "");
             value  = value - double.Parse(field);
             e.Text = value.ToString();
         }
     }
     catch
     { }
 }
 /// <summary>
 /// reemplaza el valor en los totales, para tener mas campo
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ASPxGridView1_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
 {
     e.Text = e.Text.Replace("Suma", "∑");
 }
 protected void ASPxGridView1_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
 {
     if (e.IsTotalSummary)
     {
         e.Text = e.Text.Replace("Suma=", "");
         e.Text = e.Text.Replace("Recuento", "Cantidad");
     }
     else
     {
         if (e.IsGroupSummary)
         {
             e.Text = e.Text.Replace("Recuento", "Cantidad");
         }
     }
 }
        /// <summary>
        /// modifica el texto de las sumatorias globales y grupales
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ASPxGridViewCursoMatriculado_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
        {
            if (e.IsTotalSummary)
            {
                e.Text = e.Text.Replace("Suma=", "SubTotal=");
                e.Text = e.Text.Replace("Recuento", "Cantidad");
            }
            else
            {
                if (e.IsGroupSummary)
                {
                    e.Text = e.Text.Replace("Recuento", "Cantidad");
                }
            }
            if (e.Value != null)
            {
                this.montoSubTotal = double.Parse(e.Value.ToString());
                this.calculoMonto(0);
            }

        }
 protected void ASPxGridView1_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
 {
 }
Beispiel #8
0
 private void Grid_SummaryDisplayText(object sender, ASPxGridViewSummaryDisplayTextEventArgs e)
 {
     e.Text = e.Value.ToString();
 }