Hi all,
I am using quotation marks are Delimiters. How do you prevent the user from ever using quotation marks in DataGridView cells?
I tried something like this but it never worked.
If DataGridView1.Columns.Contains(ControlChars.Quote) Then
MessageBox.Show("Man, that is my Delimiter")
Exit Sub
End If
If DataGridView1.Rows.Contains(ControlChars.Quote) Then
MessageBox.Show(errorMessage1)
Exit Sub
End If
Thanks in advance.
aman
I am using quotation marks are Delimiters. How do you prevent the user from ever using quotation marks in DataGridView cells?
I tried something like this but it never worked.
If DataGridView1.Columns.Contains(ControlChars.Quote) Then
MessageBox.Show("Man, that is my Delimiter")
Exit Sub
End If
If DataGridView1.Rows.Contains(ControlChars.Quote) Then
MessageBox.Show(errorMessage1)
Exit Sub
End If
Thanks in advance.
aman