Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / Group Class / CalculateKey Method
A reference to a DataRow object representing the data row whose k ey is to be calculated.


In This Topic
    CalculateKey Method
    In This Topic
    Calculates the key of the DataRow to determine if it is to be added to this group.
    Syntax
    'Declaration
     
    Protected Friend Overridable Function CalculateKey( _
       ByVal dataRow As DataRow _
    ) As Object
    'Usage
     
    Dim instance As Group
    Dim dataRow As DataRow
    Dim value As Object
     
    value = instance.CalculateKey(dataRow)
    protected internal virtual object CalculateKey( 
       DataRow dataRow
    )

    Parameters

    dataRow
    A reference to a DataRow object representing the data row whose k ey is to be calculated.

    Return Value

    An object representing the group's key.
    Remarks

    The QueryGroupKeys event can also be used to provide custom grouping criteria.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also