DataGrid.NavigateTo(Int32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Navigates to the table specified by row and relation name.
public:
void NavigateTo(int rowNumber, System::String ^ relationName);
public void NavigateTo (int rowNumber, string relationName);
member this.NavigateTo : int * string -> unit
Public Sub NavigateTo (rowNumber As Integer, relationName As String)
Parameters
- rowNumber
- Int32
The number of the row to navigate to.
- relationName
- String
The name of the child relation to navigate to.
Examples
The following code example navigates to the specified row number, in the table specified by child relationship name.
private void NavToGrid(System.Windows.Forms.DataGrid dataGrid)
{
// Presumes a relationship named OrderDetails exists.
dataGrid.NavigateTo(2, "OrderDetails");
}
Private Sub NavToGrid(ByVal myGrid As DataGrid)
' Presumes a relationship named OrderDetails exists.
myGrid.NavigateTo( 2, "OrderDetails" )
End Sub
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.