Domanda

I have an Infragistics UltraWebGrid bound to a datasource; I am trying to allow the user to change the value of a few cells in the row, so I am trapping the CellClick event in code behind. While the event's argument gives me the cell key (which is the column name), I still need to have the selected row DataKey so as to make the change in the database. Anyone knows how to get that? Thanks

Chris

È stato utile?

Soluzione

You can use the igtbl_getCellById utility function to get the cell. Once you have the cell, you can get it's row and then it's key:

var cell = igtbl_getCellById(cellId);
var row = cell.getRow();
var key = row.DataKey

The following references may be helpful:

Alan

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top