First, I need to create a string array from a DataGridView.SelectedCells.Values. Then I need to append that string to itself, until a limit of member.count is reached. For example,
if
string [] = {"a", "b", "c"}; // Where abc are selectedCells.Values.
the new string [] should be:
{"a", "b", "c", "a", "b", "c", "a", "b"}
- if limit is 8, for example.
How could I solve this, please?
you can use the
%(Modulus) in a for loop.That’s it.