I have this Datagridview
at the moment of clicking on send I want the items I select with the checkbox to appear on a messagebox and show me (code), (full name)
I'm trying with this method
string text = string.Empty; foreach (DataGridViewRow row in dataGridViewSMS.Rows) { if (Convert.ToBoolean(row.Cells["Estado"].Value)) { text += $@"{row.Cells["Codigo"].Value} - {row.Cells["NombreCompleto"].Value} {Environment.NewLine}"; } } MessageBox.Show(text);
throws me this error