If you would like to get an arbitrary cell value by cell coordinates, first get the grid object, and use getCellObject.
Getting the Selected Cell Value
If you would like to get the currently selected cell value you can do so using the getSelectedRow and getSelectedColumn methods.
Getting the Selected Cell Value Using Grid Events
Its also possible to get the cell value in the event model by using the native eventArgs feature. By including an argument called eventArgs in a function call from an event, the grid will pass the event object, which contain (among other things) the selected grid and cell.
In your Grid tag:
Then, in seeCurrentValue():
Getting the Cell Value in a Validation
Sometimes you want to validate a cell value from the user before you accept it. You can do this using the oncellvalidateevent, which works on the Grid tag or the column tag.
In your Grid tag:
.. we use the oncellvalidate event and pass eventArgs. The eventArgs object for validation contains the following:
source - The object which is firing the event.
cell - The Cell object of the cell that received focus.
newValue - The value that the user has entered into the cell.
oldValue - The previous value that the was entered into the cell.
Now, in our validateCell function we can get the new and old values. By returning false from this function, we prevent the grid from blurring the cell and the user has to keep typing or type something new. By passing true we accept the new value. We can revert to the old value by passing true and then setting the cell to the old value on a timeout. Eg:
Getting a field of XML by Row Number
You can also get a field from the xml (a hidden column of data really). This is the same as using getXMLDataField() in Grid 2.8.