Posted 24 April 2023, 5:20 am EST
Hi
could you help me to use the “columnFooters” in the flexgrig NET6 version
this is my code in the old version:
[code]public static void kFlexgrid__init_footer_group(FlexGrid flexgrid)
{
var gr = new MyC1GroupRow();
gr.Background =System.Windows.Media.Brushes.LightGray;
//flexgrid.ColumnFooters.Height =18;
flexgrid.ColumnFooters.Background =System.Windows.Media.Brushes.Black;
flexgrid.ColumnFooters.Margin =new System.Windows.Thickness(2,2,0,2);
flexgrid.ColumnFooters.Rows.Add(gr);
}
public class MyC1GroupRow : C1.WPF.FlexGrid.GroupRow
{
public override string GetDataFormatted(C1.WPF.FlexGrid.Column col)
{
var data = base.GetDataRaw(col);
return string.Format(col.Binding.ConverterCulture, “{0:”+ col.Binding.StringFormat +“}”, data);
}
}[/code]
Thank you