Gets the current data record as a .NET DataRow object
The current data record as a .NET DataRow object
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
AxpDataGrid Class | Axezz.WebControls Namespace