In the following image, in the red box i would like to make appear the horizontal bars, one for each letter:

Thanks.
Code: Select all
C#
DrawPercent( Math.Round(100m/Customers.Count * Totals.Count(GroupHeaderBand2), 2));
VB.NET
DrawPercent( Math.Round(100/Customers.Count * Totals.Count(GroupHeaderBand2), 2))
Code: Select all
C#
private void DrawPercent(decimal percent)
{
double labelWidth = (double)Math.Round(Container1.Width / 100 * (double)percent,2);
txtPercent.Width = labelWidth;
}
VB.NET
Private Sub DrawPercent(ByVal percent As Decimal)
Dim labelWidth As Double = CType(Math.Round(Container1.Width / 100 * CType(percent,Double),2),Double)
txtPercent.Width = labelWidth
End Sub