Home - Forums-.NET - FlyGrid.Net (Windows Forms) - C#: Additional samples

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

C#: Additional samples
Link Posted: 18-Feb-2011 09:50
The last four posts' downloads are unreachable. They redirect me to the forum top page.
Link Posted: 19-Feb-2011 05:30
Thanks for the feedback. Now these links have been fixed.
Link Posted: 11-May-2012 16:19
Is there a way to have the label of the summary in multi language such as having the possibility to have "Total" or blanc instead of "SUM"?

This sample shows how to change/override the label of summary (in this code label can be changed just in case of SummaryKind.Sum):
public class ColumnWithCustomSummaryLabel : NumberColumn
{
  public ColumnWithCustomSummaryLabel(string name) : base(name) { }
  private string sumKindLabel = "Total";
  //here we can change the label for SUM
  public string SumKindLabel
  {
    get { return sumKindLabel; }
    set
    {
      sumKindLabel = value;
    }
  }
  protected override string FormatSummary(SummaryKind kind, object summaryValue)
  {
    if (kind == SummaryKind.Sum)
    {
      string text = this.SumKindLabel + "=";
      text += (summaryValue != null ? summaryValue.ToString() : "?");
      return text;
    }
    return base.FormatSummary(kind, summaryValue);
  }
}