private void detail_Format(object sender, System.EventArgs eArgs)
{
if (this.TextBox1.Value.ToString() == "10249")
{
this.txtShippedDate.OutputFormat = "MMMM";
this.txtShippedDate.ForeColor = System.Drawing.Color.Crimson;
}
else
{
this.txtShippedDate.OutputFormat = "MMM";
this.txtShippedDate.ForeColor = System.Drawing.Color.Black;
}
//use the following lines to be sure that the OutputFormat
//is applied to every record
this.TextBox1.Value = this.TextBox1.Value;
this.txtShippedDate.Value = this.txtShippedDate.Value;
}