Hello
I'd like to loop through selected rows in an ultragrid and get the value of one cell.
I'm having difficulty figuring out how to do this, as well as finding ANY documentation on how to do it.
I've tried so many scenarios, but here's some of the code:
I'm not even sure how to get the selected rows, as the gridPending.Selected.Cells doesn't work!!
Any suggestions? Thanks.
I'd like to loop through selected rows in an ultragrid and get the value of one cell.
I'm having difficulty figuring out how to do this, as well as finding ANY documentation on how to do it.
I've tried so many scenarios, but here's some of the code:
Code:
Dim rowCount As Integer
Dim i As Integer
Dim RSNInt As Integer
Dim RSNStr As String
Dim FolderRSN As String
Dim RemoveFolders As String
Dim aRow as SSRow
'Format RemoveFolders string like "(1)FolderRSN1,(2)FolderRSN2,(3)FolderRSN3,"
For i = 0 To gridPending.Selected.Cells.Count - 1
Set aRow = gridPending.Selected.Cells
RSNInt = RSNInt + 1
RSNStr = Trim(Str(RSNInt))
FolderRSN = aRow.Cells(3).Value
RemoveFolders = FolderRSN + "(" + RSNStr + ")" + FolderRSN + ","
Next
I'm not even sure how to get the selected rows, as the gridPending.Selected.Cells doesn't work!!
Any suggestions? Thanks.