src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerBranch.cs
/// <summary>
///     Allows derived classes to specify supported states for a particular cell.  The base implementation
///     takes into account branch-level read-only state, and column value supported state.
/// </summary>
Allows derived classes to specify supported states for a particular cell.  The base implementation
takes into account branch-level read-only state, and column value supported state.
Allows derived classes to specify supported states for a particular cell . The base implementation takes into account branch - level read - only state and column value supported state .
public virtual TreeGridDesignerValueSupportedStates  GetValueSupported(int row, int column)
        {
            var supportedState = TreeGridDesignerValueSupportedStates.Supported;
            if (_readOnly)
            {
                supportedState = TreeGridDesignerValueSupportedStates.DisplayReadOnly
                                 | TreeGridDesignerValueSupportedStates.SupportsKeyboardNavigation;
            }
            else if (row < ElementCount)
            {
                var component = GetElement(row);
                supportedState = _columns[column].GetValueSupported(component);
            }
            else if (column != 0)
            {
                supportedState = TreeGridDesignerValueSupportedStates.Unsupported;
            }
            return supportedState;
        }
public virtual TreeGridDesignerValueSupportedStates GetValueSupported ( int row , int column ) { var supportedState = TreeGridDesignerValueSupportedStates . Supported ; if ( _readOnly ) { supportedState = TreeGridDesignerValueSupportedStates . DisplayReadOnly | TreeGridDesignerValueSupportedStates . SupportsKeyboardNavigation ; } else if ( row < ElementCount ) { var component = GetElement ( row ) ; supportedState = _columns [ column ] . GetValueSupported ( component ) ; } else if ( column != 0 ) { supportedState = TreeGridDesignerValueSupportedStates . Unsupported ; } return supportedState ; }
Allows derived classes to specify supported states for a particular cell.
Allows derived classes to specify supported states for a particular cell .
/* ITreeGridDesignerBranch */ // no editing if we're read only // delegate to the column // creator nodes are only editable/navigable in the first column
row
int
column
int