or
private void rgvOrders_CellFormatting(object sender, CellFormattingEventArgs e) |
{ |
if (e.CellElement.ColumnIndex == 0) |
{ |
if (!e.CellElement.Font.Underline) |
{ |
e.CellElement.Font = new Font(e.CellElement.Font, FontStyle.Underline); |
e.CellElement.ForeColor = Color.Blue; |
// I want something like this |
// e.CellElement.Cursor = Cursors.Hand; |
} |
} |
} |
private void GraficoReceitaPorPlano(IList<
object
> listaObj)
{
this.grfPieReceitaAlunoPorPlano.Series.Clear();
this.grfPieReceitaAlunoPorPlano.AreaType = ChartAreaType.Pie;
this.grfPieReceitaAlunoPorPlano.ShowTitle = true;
this.grfPieReceitaAlunoPorPlano.Title = "Receita de Alunos Por Plano";
this.grfPieReceitaAlunoPorPlano.ChartElement.TitlePosition = TitlePosition.Top;
this.grfPieReceitaAlunoPorPlano.ChartElement.TitleElement.TextAlignment = ContentAlignment.MiddleCenter;
this.grfPieReceitaAlunoPorPlano.ShowLegend = true;
this.grfPieReceitaAlunoPorPlano.ChartElement.LegendElement.TitleElement.Text = "Plano";
this.grfPieReceitaAlunoPorPlano.ChartElement.LegendElement.TitleElement.TextAlignment = ContentAlignment.MiddleCenter;
this.grfPieReceitaAlunoPorPlano.ShowToolTip = true;
PieSeries _pie = new PieSeries();
foreach (object[] _obj in listaObj)
{
double _valor = (double)ValidarCampoNumerico.TryDecimal(_obj[4].ToString());
PieDataPoint _point = new PieDataPoint(_valor, _obj[2].ToString());
_point.Label = _obj[2];
_pie.DataPoints.Add(_point);
}
//_pie.ShowLabels = true;
_pie.LabelMode = PieLabelModes.Horizontal;
this.grfPieReceitaAlunoPorPlano.Series.Add(_pie);
}