This class provides the basic implementation for single cell selection in a grid. The object stored as the selection and returned by getSelectedCell contains the following properties:
<dl> <dt>record : Ext.data.record</dt> <dd>The Record which provides the data for the row containing the selection</dd> <dt>cell : Ext.data.record</dt> <dd>An object containing the following properties: <dl> <dt>rowIndex : Number</dt> <dd>The index of the selected row</dd> <dt>cellIndex : Number</dt> <dd>The index of the selected cell Note that due to possible column reordering, the cellIndex should not be used as an index into the Record's data. Instead, the name of the selected field should be determined in order to retrieve the data value from the record by name:
var fieldName = grid.getColumnModel().getDataIndex(cellIndex);