Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub UltraButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles UltraButton1.Click
Dim row As UltraGridRow = Me.UltraGrid1.ActiveRow
Dim cell As UltraGridCell = Me.UltraGrid1.ActiveCell
If Not Nothing Is row Then
Dim rowType As Type = row.GetType()
Dim isDataRow As Boolean = row.IsDataRow
Dim isGroupByRow As Boolean = row.IsGroupByRow
Dim isFilterRow As Boolean = row.IsFilterRow
Dim isSummaryRow As Boolean = row.IsSummaryRow
Dim isTemplateAddRow As Boolean = row.IsTemplateAddRow
System.Diagnostics.Debug.WriteLine("Row type = " & rowType.Name)
System.Diagnostics.Debug.WriteLine("isDataRow = " & isDataRow)
System.Diagnostics.Debug.WriteLine("isGroupByRow = " & isGroupByRow)
System.Diagnostics.Debug.WriteLine("isFilterRow = " & isFilterRow)
System.Diagnostics.Debug.WriteLine("isSummaryRow = " & isSummaryRow)
System.Diagnostics.Debug.WriteLine("isTemplateAddRow = " & isTemplateAddRow)
End If
If Not Nothing Is cell Then
Dim cellType As Type = cell.GetType()
Dim isDataCell As Boolean = cell.IsDataCell
Dim isFilterRowCell As Boolean = cell.IsFilterRowCell
System.Diagnostics.Debug.WriteLine("Cell type = " & cellType.Name)
System.Diagnostics.Debug.WriteLine("isDataCell = " & isDataCell)
System.Diagnostics.Debug.WriteLine("isFilterRowCell = " & isFilterRowCell)
' You can get the cell's row using the Row property.
row = cell.Row
End If
End Sub