CyberDragon256
Member
- Joined
- Sep 7, 2017
- Messages
- 10
- Reaction score
- 0
I'm sorry if this is the wrong place to be posting this, it seemed like the right forum for it.
I am trying to make a prototype program to connect to a MySQL database with C# but some of the tables contain invalid data.
When I run the program I keep getting the default DataError message. I have tried adding in this code to handle the error event:
That however doesn't work and I still get the default DataError message when it reaches the part of the table with the data. If anyone could help, I would really appreciate it, thanks.
I am trying to make a prototype program to connect to a MySQL database with C# but some of the tables contain invalid data.
When I run the program I keep getting the default DataError message. I have tried adding in this code to handle the error event:
Code:
private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs anError)
{
anError.Cancel = true;
}
That however doesn't work and I still get the default DataError message when it reaches the part of the table with the data. If anyone could help, I would really appreciate it, thanks.