我必须在网格中获取列号。
例如:如果我有Name, Age,Number作为网格中的三列并且我给出列的headertext(Age) 它应该返回Number(2) 代表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列的,我需要数字。
我怎样才能做到这一点?