Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Generic Columns

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

Generic Columns
Link Posted: 22-Feb-2007 22:29
Will the next version include a Generic Column (Column).  It would be realy good to inherit from this overriding GetValue that recieves T and returns a property of it.


class VirtualColumn : Column
{
    public override object GetValue(NodeBase node, T data)
    {
        return data.MyProperty;
    }
}
Link Posted: 26-Feb-2007 04:55
FlyGrid has a several ways to provide data to display in cells:
1. NodeBase.GetCellValue
2. Column.GetValue
4. Virtual mode - VirtualMode_xxx event handlers.
You can use FlyGrid.Net for .Net 2.0 to create generic column, override GetValue method and use generic driven GetValue method in your development.