I don’t think I asked my question correctly..
This code works, if I hard code the zero into rowData.Line instead of putting j. However, I am looking for a way to pass in j to rowData.Line .
for(var j = 0; j < columnArray.length; j++){
var cellsrenderer = function (indexRow, column, cellValue, defaultHtml, colSettings, rowData) {
return '<div style="text-align: center; margin-top: 5px; ">' + rowData.Line[0] '</div>';
}
$('#jqxgrid').jqxGrid('setcolumnproperty', columnArray[j] ,'cellsrenderer', cellsrenderer);
}'