AxpDataGrid

AxpDataGrid.CurrentDataRow Property

Gets the current data record as a .NET DataRow object

[Visual Basic]
Public ReadOnly Property CurrentDataRow As DataRow
[C#]
public System.Data.DataRow CurrentDataRow {get;}

Property Value

The current data record as a .NET DataRow object

Remarks

The current data record when in Grid mode is the first data record on current page.
Check on null (C#) / Nothing (VB) before use. Can be used instead of CurrentRecord.
Available in AxpDataGrid.Load event. (or after a call to DataBind if UseDataBinding=True)

Example usage:

Private Sub AxpDataGrid1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxpDataGrid1.Load
  If Not AxpDataGrid1.CurrentDataRow Is Nothing Then
    Dim MyColumnValue as String = AxpDataGrid1.CurrentDataRow.Item("MyColumnName").ToString
  End If
End Sub

See Also

AxpDataGrid Class | Axezz.WebControls Namespace