Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Performance hit when using custom column implementation

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

Performance hit when using custom column implementation
Link Posted: 24-Apr-2007 06:52
I've created this class to assist in creation of non-editable columns:


    class NonEditGridColumnClass : Column {
        public string type = \"standard\";

        public NonEditGridColumnClass(string name, string type)
            : base(name) {
            this.FitMode = ColumnFitMode.SmartFit;
            this.AllowSizing = true;
            this.ImageAlign = ContentAlignment.MiddleCenter;
            this.AllowMove = false;
            this.ShowTooltips = true;
            this.Caption = name;
            this.ReadOnly = true;

            this.type = type;
        }

    }


If it is used to create say 50-100 rows, performance seems to be OK. BUt with 900 rows, I have to wait 5-10 times longer for the grid to populate. Is there anything I'm doing wrong here?
Link Posted: 24-Apr-2007 07:13
Yes, SmartFit mode decrease performance of FlyGrid. This mode takes processor time to calculate best width of column.
Link Posted: 24-Apr-2007 07:41
Makes sense. Thanks for the quick tip.