Added Error Handler for corrupted table data.
This commit is contained in:
@@ -760,8 +760,15 @@ namespace Volian.Controls.Library
|
||||
MyFlexGrid.Focus();
|
||||
if (!MyFlexGrid.IsRoTable) // Table ROs are none editable - don't select a table cell
|
||||
{
|
||||
MyFlexGrid.Select(0, 0);
|
||||
MyFlexGrid.FirstEntry = true; // to fix a problem with initial mouse click into table
|
||||
try
|
||||
{
|
||||
MyFlexGrid.Select(0, 0);
|
||||
MyFlexGrid.FirstEntry = true; // to fix a problem with initial mouse click into table
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("The content of this table is corrupted. You will either need to restore a previous version or delete it.", "Table Corrupted", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user