Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button103_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button103.Click ' Get the second row and second cell in the second row. Dim row As UltraGridRow = Me.UltraGrid1.Rows(1) Dim cell As UltraGridCell = row.Cells(1) ' You can make a cell the active cell by setting the ActiveCell property off the ' UltraGrid Me.UltraGrid1.ActiveCell = cell ' Or by calling Activate method off the UltraGridCell cell.Activate() ' Or by setting the Activated property off the UltraGridCell to true. cell.Activated = True End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button103_Click(object sender, System.EventArgs e) { // Get the second row and second cell in the second row. UltraGridRow row = this.ultraGrid1.Rows[1]; UltraGridCell cell = row.Cells[1]; // You can make a cell the active cell by setting the ActiveCell property off the // UltraGrid this.ultraGrid1.ActiveCell = cell; // Or by calling Activate method off the UltraGridCell cell.Activate( ); // Or by setting the Activated property off the UltraGridCell to true. cell.Activated = true; }