グリッドの列番号を取得する必要があります。
例:グリッドの 3 つの列として , があり、その列の( Name
Age ) を指定した場合、グリッドの 2 番目の列を表す (2) を返す必要があります。Age
Number
headertext
Number
Age
For Each UltraGridColumn In Me.TransactionsGrid.Rows.Band.Columns
If (UltraGridColumn.Hidden = False) Then
'UltraGridColumn.Header.Caption
'Get the cell
UltraGridCell = UltraGridRow.Cells("Number Here")
End If
Next
ここで、 ではない列番号を取得する必要がありますhidden
。列の がheadertext
あり、番号が必要です。
どうすればそれを達成できますか?