B2017-128 disable the merge table cells button if only one table cell is selected

This commit is contained in:
John Jenko 2017-06-26 15:34:51 +00:00
parent 850acf34b4
commit c1bbd219a3

View File

@ -1377,7 +1377,8 @@ namespace Volian.Controls.Library
{
if (MyFlexGrid != null )
{
btnTblDgnMergeCells.Enabled = btnCmGridMergeCells.Enabled = !MyFlexGrid.IsRoTable && !MyFlexGrid.IsInMergeRange();
// B2017-128 added check for only one cell selected (should not be alowed to merge just a single cell)
btnTblDgnMergeCells.Enabled = btnCmGridMergeCells.Enabled = !MyFlexGrid.IsRoTable && !MyFlexGrid.IsInMergeRange() && !MyFlexGrid.Selection.IsSingleCell;
}
}
private void SetButtonMenuEnabledDisabledOnSelection(bool setting)