This commit is contained in:
2011-03-28 18:13:29 +00:00
parent 17a27bb8e8
commit 7f22d62f00
4 changed files with 21 additions and 12 deletions

View File

@@ -1828,7 +1828,7 @@ namespace Volian.Controls.Library
public void SetRibbonForGrid()
{
// set to true if editing cell, otherwise false for grids
bool enable = (MyFlexGrid.Editor != null);
bool enable = (MyFlexGrid != null && MyFlexGrid.Editor != null);
btnPaste.Enabled = enable;
btnCopy.Enabled = enable;
btnCut.Enabled = enable;