dhtmlxgrid

Hi,

I want to get the data from a selected row. I can get the id by getSelectedId(). I think that I have to use the getUserData(row_id,name) function but I don’t know to what refers de parameter name of getuserdata().

I load data from a database and not from and xml. I saw that in the .xml are defined the userdatas but I don’t know how to do it if the data is loaded from a database.

Thanks in advance.

Naish

If you need to get data from grid cells you can use

var rowId=grid.getSelectedId();
var data= grid.cells(rowId, index).getValue();

where index - zero based of column in question