private void DataGridProgressBarColumn2_DataCellFormatParamsNeeded(object sender, DataGridProgressBarDataCellFormatParamsNeededEventArgs e)
        {
            if (e.Row == null)
            {
                return;
            }

            object val = e.Column.GetRowValue(e.Row);

            if (val is decimal)
            {
                double dValue = (double)(decimal)val;

                if (dValue > dataGridProgressBarColumn1.MaxValue / 3)
                {
                    e.CellArgs.Font = boldProgressFont;
                }
            }
        }
        private void dataGridProgressBarColumn1_DataCellFormatParamsNeeded(object sender, DataGridProgressBarDataCellFormatParamsNeededEventArgs e)
        {
            if (e.Row == null)
            {
                return;
            }

            object val = e.Column.GetRowValue(e.Row);

            if (val is Decimal)
            {
                double dValue = (double)(Decimal)val;

                if (dValue > 100 / 4)
                {
                    double quota = (double)(((Decimal)val - 100 / 4) / (100 / 4 * 3) * 255);
                    if (quota > 255)
                    {
                        quota = 255;
                    }
                    e.CellArgs.BarFillColor = EhLibUtils.ApproximateColor(e.CellArgs.BarFillColor, Color.FromArgb(241, 171, 50), quota);
                }

                if (dValue > dataGridProgressBarColumn1.MaxValue)
                {
                    e.CellArgs.Font = boldProgressFont;
                }
            }
        }