In this sample I assume that here it is a DataGridView with three columns.
FirstName | LastName | IsRegistered
The Codes below, adds the Registered Customer to a List<t>.
List<customer> list = new List<customer>();
foreach (DataGridViewRow row in this.GridView.Rows)
{
if ((row.Cells["IsRegistered"].Value) == null)
continue;
if (((bool)row.Cells["IsRegistered"].Value == true))
{
list.Add(new Customer() {
FirstName = (string)row.Cells["FirstName"].Value,
LastName = (string)row.Cells["LastName"].Value
};
}
}
Let me know if you have any problem else.