Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button101_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button101.Click Dim row As UltraGridRow = Me.UltraGrid1.Rows(0) ' Toggle the selected status of the row. row.Selected = Not row.Selected End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button101_Click(object sender, System.EventArgs e) { UltraGridRow row = this.ultraGrid1.Rows[0]; // Toggle the selected status of the row. row.Selected = !row.Selected; }