@naveen.ch1
ideally you would use a counter and check if counter reaches rowcount of datatable
cheers