I need to dynamically append a div to a cell in my grid

I need to append a div to a cell in my grid. I am able to do this if I first select the cell by clicking on it and then use $(".cellselected").append(function(n){ return “

hello
”; });

However, I need to append the div to a cell without actually first selecting the cell. It seems that I should be able to find the cell by first using foreachrow and then using foreachcell to find the correct grid cell, and then using $(“this.cell”).append(function(n){ return “

hello
”; });

This does not work. I think this is because “this” does not work in this case. Any ideas on how I can dynamically append to a cell in the grid?

Thanks.

You can get HTML object of the cell by using

grid.cells(row_id, column_index).cell

Ah, actually you answered the question I wanted to ask, but couldn’t figure out how to ask it.

Thanks.