Hi Rohit
I used formCalc and it works fine
the code I used (in the form:ready event of the subform):
if ( $.table.row.count == 0 ) then
$.presence = "hidden"
endif
About the first row missing:
it looks like you are not using a wrapper for your rows,
the meaning is that you need to build the PDFSource node with the following hirarchy
table node with cardinality 1 to 1 -> wrapper node with cardinality 0 to n -> data node with cardinality 0 to 1 with an attribute for each colomn.
then set the binding of the table to the table node,
the binding of the row to the wrapper node (don't forget to sign the repeat row for each data item checkbox),
and the binding for each cell to the attributes of the data node.
withoute using the wrapper the first row of the table is 'taken' for the row binding.
the subform needs no binding.
hope I helped
Shai