Use Getselections to get only one row of values, check for half a day because the IDfield property value is incorrectly written, corrected after OK.
Solution Two: Instead of using getchecked,IDfield write wrong without influence ,
Note:
Getselections, getchecked the IDfield attribute is dropped, you can also get the value of multiple rows.
GetSelected: Gets the first selected row data, or returns null if no row is selected, otherwise returns the record.
Getselections: Gets all the selected row data and returns the array data for the element record.
GetChecked: Gets the data from the CheckBox selection row, returning the array data for the element record.
GetSelected and Getselections are selected rows, and getchecked is the selection row.
The row is selected to mean that we clicked on a row where the background color of the row is yellow, which proves that we have selected the row.
and the choice of the line means that we have a CheckBox button placed on the switch, I tick this button, so you can also refer to the selection of the line Shang more appropriate!
Easyui in the DataGrid getselections can only get a row of values???