In InfoPath 2010, under the data tab, click Default Values. Expand the repeating table and enter the default values for each intance of the item you wish to display. So in this sample, I used field1 for the items (item 1, item 2, item 3, etc.), field2 is for the checkbox, and field3 (A, B) is used for the value to segregate the rows. See image below:

To add more items, click on the repeating group (in this case group2) and select Add another group below.
If you check field3, it will either contain A or B (those are the values I selected so that each row will have a distinctive value).
To hide those rows, add a formatting rule to the repeating table. See image below:
