private void LockToParentGrid()
        {
            _parentGrid =
                (ColumnsGrid)
                ((DependencyObject)this).Ancestors().Where(x => x.GetType() == typeof(ColumnsGrid)).FirstOrDefault();

            if (_parentGrid != null)
            {
                _parentGrid.HookGeneratorOptions(_internalId, this);
            }
        }
        private void LockToParentGrid()
        {
            _parentGrid =
                (ColumnsGrid)
                ((DependencyObject)this).Ancestors().Where(x => x.GetType() == typeof(ColumnsGrid)).FirstOrDefault();

            if (_parentGrid != null)
                _parentGrid.HookGeneratorOptions(_internalId, this);
        }