Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / GridControl Class / CurrentRow Property


In This Topic
    CurrentRow Property
    In This Topic
    Gets or sets the grid's current row
    Syntax
    'Declaration
     
    <BrowsableAttribute(False)>
    <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
    Public Property CurrentRow As Row
    'Usage
     
    Dim instance As GridControl
    Dim value As Row
     
    instance.CurrentRow = value
     
    value = instance.CurrentRow
    [Browsable(false)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    public Row CurrentRow {get; set;}

    Property Value

    A reference to a Row object representing the grid's current row. Cannot be a null reference (Nothing in Visual Basic).
    Remarks

    Only rows whose CanBeCurrent property is set to true can be current.

    When bound to a data source, the grid's current row will always match the position of the System.Windows.Forms.CurrencyManager associated with the data source.

    If the row is in a collapsed group or its GridElement.Visible property is set to false, and exception will be thrown.

    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