A method and system for selecting a dynamic object in a Graphical User
Interface (GUI), is provided. The GUI is represented by a matrix
comprising a plurality of objects and a plurality of data values
associated with each object. The method includes selecting a first row
that includes a first non null data value in a textually represented
matrix derived from the matrix; selecting a row in the textually
represented matrix based on a predefined input; calculating the
difference in the number of rows between the selected row and the row
that includes the first non null data value; selecting a least index key
from a plurality of index keys, with each index key identifying each of a
plurality of selected objects in the matrix; and locating an object from
the plurality of selected objects.