When navigation was requested by a user, it is raised.
Event Data
The event handler receives an argument of type AwNavigateRequestedEventArgs containing data related to this event. The following AwNavigateRequestedEventArgs properties provide information specific to this event.
| Property |
Description |
|
Cancel
|
Gets or sets a value that indicates whether it cancels navigation processing. |
|
CurrentRowModifyColsName
|
Gets or sets a column name array which is a modify target of the current row. |
|
CurrentRowModifyColsValue
|
Gets or sets a column value array which is a modify target of the current row. |
|
DeleteConfirmation
|
Gets or sets a value that indicates whether it shows Delete Confirmation Dialog. |
|
NavigateType
|
Gets a type value of navigation. |
|
NewRowModifyColsName
|
Gets or sets a column name array which is a modify target of the new row. |
|
NewRowModifyColsValue
|
Gets or sets a column value array which is a modify target of the new row. |
Example
How to set a value of a column of a row that is added.
Private Sub dbNavigate_NavigateRequested(ByVal sender As Object, ByVal e As AwNavigateRequestedEventArgs)
If e.NavigateType = AwNavigateType.Add Then
Dim colsName() As String = new String() {"id"}
Dim colsValue() As Object = new Object() {"0001"}
e.NewRowColsName = colsName
e.NewRowColsValue = colsValue
End If
End Sub
private void dbNavigate_NavigateRequested(object sender, AwNavigateRequestedEventArgs e)
{
if (e.NavigateType == AwNavigateType.Add)
{
string[] colsName = new string[] { "id" };
object[] colsValue = new object[] { "0001" };
e.NewRowColsName = colsName;
e.NewRowColsValue = colsValue;
}
}
See Also
AwDbNavigate Class | Asterworld.Data Namespace