actual row of grid

Jun 25, 2009 at 3:52 PM
Edited Jun 26, 2009 at 10:39 AM

i need to get current/selected line number

i tried everything:

1. CurrentItem

2. CurrentCell->Item

3. SelectedItems->Count ? SelectedItems[0] :


and than find it's position by Items->IndexOf

first case is working but only when grid has focus = unusable

second has similar problems and sometimes returns item not in Items list !?

third one is always nullptr

what is correct way for it?



Jun 26, 2009 at 12:08 PM

or is there any chance to find this cell/element-into-it is selected?

it is drawn blue even without focus in grid so maybe i can iterate all elements into grid

but i have no idea how to find tested one is selected one (f.e. IsFocused is already not true)

Jun 26, 2009 at 2:15 PM

it seems iterating cells and using cell->IsSelected is solution