We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to get the cell value- cell row- cell column?

Hi,

I want to get the specified cell value, selected row, , selected column. i attached my source code for your reference.
I tried following code:
function onContextMenuShow()
{
var grid = document.getElementById(’<%= g.ClientID %>’);
grid.ContextMenu.hide();
var menu = event.srcElement;
var cell = menu.menuContext;
if (cell == null)
cell = grid.getActiveCell();
if (cell == null)
return;

var row = grid.getCellRow(cell);
var col = grid.getCellColumn(cell);
alert(row);
alert(col);
// var value = GridWeb1.getCellValueByCell(cell);
if (row == 1 && col > 7) {

var staffname = grid.getCellValue(1, col);

alert(staffname);
}
}



i am not getting the result. Please suggest me

thanks in advance
Meenaa

Hi,

There is no problem in your code, we have tested it with IE 9. Please download Aspose.Cells.GridWeb v2.5.3.2006