I am trying to get the row count of a data grid, but
everytime I try and used the rowCount(); function it says that I am
trying to access a unaccessable method (due to it being private or
something). how am I suppose to get the row count of that Datagrid
if I can't use that method?