Check for index in range before selecting range in DataGridView.

Replace {sp} with space when svgText elements are deserialized.
Added error handling for missing genmac macros.
Changed lookup to internal to check for missing genmac macros.
This commit is contained in:
Rich
2011-06-23 21:30:38 +00:00
parent 5a7af006a8
commit 595db08cc7
4 changed files with 10 additions and 4 deletions

View File

@@ -398,7 +398,6 @@ namespace Sync
if (fc.ReadOnly) fc.MoveToDevelopment();
}
}
private void listToClipboardToolStripMenuItem_Click(object sender, EventArgs e)
{
dgv.EndEdit();
@@ -428,6 +427,7 @@ namespace Sync
{
dgv.ClearSelection();
DataGridView.HitTestInfo info = dgv.HitTest(e.X, e.Y);
if (info.RowIndex < 0) return;
dgv.CurrentCell = dgv[0, info.RowIndex];
dgv.Rows[info.RowIndex].Selected = true;
}