Hi Peryan,
Well, the first thing to do is determine if you want the Selected Row(s) or the Active row. It's important to understand the difference. The Active row is the current row in the grid with focus. There can only be one active row. Selected rows are the highlight rows that the user has selected by clicking on the RowSelectors or using the keyboard. There can be more than one, depending on the SelectTypeRow setting.
You can get the ActiveRow using the ActiveRow property of the grid:
grid.ActiveRow
The seleted rows are stored in a collection:
grid.Selected.Rows
Either way, you can get the value from a row using the Cells collection of the row. Like so:
Debug.Writeline(this.ultraGrid1.ActiveRow.Cells["Column Key"].Value.ToString());
Debug.Writeline(this.ultraGrid1.Selected.Rows[0].Cells["Column Key"].Value.ToString());
I'm afraid you lost me. Why would you have to loop? The code in my previous post shows you how to get the row. If you want the Index, you can just use the Index property on the row - although it's usually not a good idea to rely on indices, since they can change.