Class Column<TRow, TValue>
  
  Represents typed grid column definition
 
  
  
    Inheritance
    System.Object
    
    
    Column<TRow, TValue>
   
  
    Implements
    System.IDisposable
    
    
   
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      System.Object.ToString()
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
   
  
  Assembly: NFX.WinForms.dll
  
  
    public class Column<TRow, TValue> : Column, IDisposable, IConfigurable, IConfigurationPersistent
   
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TRow | 
         | 
      
      
        | TValue | 
         | 
      
    
  
  Constructors
  
  
  
  
  
  
  
  Declaration
  
    public Column(Grid grid, string id)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Grid | 
        grid | 
         | 
      
      
        | System.String | 
        id | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public Column(Grid grid, string id, int idx)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Grid | 
        grid | 
         | 
      
      
        | System.String | 
        id | 
         | 
      
      
        | System.Int32 | 
        idx | 
         | 
      
    
  
  Fields
  
  
  
  
  Invoked to get comment value(if any) for the cell
 
  
  Declaration
  
    public GetCommentHandler<TRow> GetComment
   
  Field Value
  
  
  
  
  Invoked to determine whether a row has data for this column
 
  
  Declaration
  
    public GetHasValueHandler<TRow, TValue> GetHasValue
   
  Field Value
  
  
  
  
  Invoked to extract data value from row
 
  
  Declaration
  
    public GetValueHandler<TRow, TValue> GetValue
   
  Field Value
  
  Properties
  
  
  
  
  
  
  
  Declaration
  
    public override Type DataType { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Type | 
         | 
      
    
  
  Overrides
  
  Methods
  
  
  
  
  
  
  
  Declaration
  
    public virtual string GetCommentFromRow(TRow row)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TRow | 
        row | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public override string GetCommentFromRow(object row)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        row | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Overrides
  
  
  
  
  
  Returns value for specified row. Base implementation calls event handler
 
  
  Declaration
  
    public virtual TValue GetValueFromRow(TRow row)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TRow | 
        row | 
         | 
      
    
  
  Returns
  
  
  
  
  
  
  
  Declaration
  
    public override object GetValueFromRow(object row)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        row | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         | 
      
    
  
  Overrides
  
  
  
  
  
  Returns true when specified row has value. Base implementation calls event handler
 
  
  Declaration
  
    public virtual bool HasValueInRow(TRow row)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TRow | 
        row | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public override bool HasValueInRow(object row)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        row | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  Implements
  
      System.IDisposable
  
  
  
  Extension Methods