By 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 %>
It seems to populate the col_cod
column with the value of codigo
and col_nom
with the value of Descricao
, but it complicates the first parameter, which in this case is the value coming from asp
to linha
. So what exactly does it do?