In this sample code snippet shows how to populate datagridview rows from rich text box, read all The line one by one entered in a rich textbox by foreach loop as shown and trim whitespace in both start and end of the string. Add to DataGridViewRow row with incremented row numbers.
Addition to that check if the string is numeric only and set value datagridview combobox during the loop.