Check the Cell Has empty value in Dhtml Grid

i have a dhtml grid,i grid i want to know the cell 5 has any value or not.

my grid name is mygrid and cell no is 4.



Please help me

You can get cell of any value as

grid.cells(rowId, cellIndex).getValue();

so you can just use

if (grid.cells(rowId, cellIndex).getValue()=="" ) alert(“cell is empty”);