Hi Imran,
For this scenario you have to create an iterator and assign it to your view.
Please check below links they will give you an idea about how to create and use iterator class.
Change Property of the Label and Input field in UI for Form View - Part 2
Change Color of the Label and Input field in UI for Form View - Part 1
Thanks,
Ashish