セルがデータソース内のセルに関連付けられている場合、True を返します。このプロパティは、アンバインド列、グループ行、フィルター行、テンプレート追加行、集計行などに関連付けられたセルではFalseを返します。
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
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void ultraButton1_Click(object sender, System.EventArgs e) { UltraGridRow row = this.UltraGrid1.ActiveRow; UltraGridCell cell = this.UltraGrid1.ActiveCell; if ( null != row ) { Type rowType = row.GetType( ); bool isDataRow = row.IsDataRow; bool isGroupByRow = row.IsGroupByRow; bool isFilterRow = row.IsFilterRow; bool isSummaryRow = row.IsSummaryRow; bool isTemplateAddRow = 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 ); } if ( null != cell ) { Type cellType = cell.GetType( ); bool isDataCell = cell.IsDataCell; bool isFilterRowCell = 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; } }