示例#1
0
 private void textBox4_ItemDataBinding(object sender, EventArgs e)
 {
     if (i > RowCount)
     {
         return;
     }
     Telerik.Reporting.Processing.TextBox t1 = (Telerik.Reporting.Processing.TextBox)sender;
     t1.Value = i.ToString();
     i++;
 }
        private void textBox53_ItemDataBound(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.TextBox txt = sender as Telerik.Reporting.Processing.TextBox;
            var valor = (decimal)txt.Value;

            if (valor > 0)
            {
                txt.Style.BackgroundColor = Color.Green;
            }
            else if (valor < 0)
            {
                txt.Style.BackgroundColor = Color.Red;
            }
            else
            {
                txt.Style.BackgroundColor = Color.Transparent;
            }
        }
示例#3
0
 /// <summary>
 /// Handles the ItemDataBound event of the textBox10 control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void textBox10_ItemDataBound(object sender, EventArgs e)
 {
     Telerik.Reporting.Processing.TextBox procTextbox = (Telerik.Reporting.Processing.TextBox)sender;
     procTextbox.Value = ++_rowIndex;
 }