What does the setCell command in javascript

Asked

Viewed 40 times

1

The name implies that this command configures a cell in a table/grid. But I’m having trouble understanding its syntax mixed with asp.

<%If col_cod <> "" Then %>
    oGrid.setCell(<%=linha%>,'<%=col_cod%>',codigo);
<% End If %>

<%If col_nom <> "" Then %>
    oGrid.setCell(<%=linha%>,'<%=col_nom%>',descricao);
<% End If %>

Apparently he populates the column col_cod with the value of codigo and col_nom with the value of Descricao, but complicates me the first parameter, which in this case is the value coming from asp for linha. So what exactly does he do?

1 answer

4


  • I thought it was js, by the way it was written. As I’m doing the conversion of an ASP code to js, I thought it was.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.