コード例 #1
0
        /// <summary>
        /// Determines whether the corresponding cell in a column is focusable or not.
        /// </summary>
        /// <param name="treeGrid">
        /// The SfTreeGrid.
        /// </param>
        /// <param name="rowColumnIndex">
        /// The corresponding rowcolumnindex to check whether the cells in a column is focusable or not.
        /// </param>
        /// <returns>
        /// Returns <b>true</b> if the cells in a column is focusable; otherwise, <b>false</b>.
        /// </returns>
        public static bool AllowFocus(this SfTreeGrid treeGrid, RowColumnIndex rowColumnIndex)
        {
            var gridColumn = treeGrid.GetTreeGridColumn(rowColumnIndex.ColumnIndex);

            if (gridColumn != null)
            {
                return(gridColumn.ActualWidth != 0d && !double.IsNaN(gridColumn.ActualWidth) && gridColumn.AllowFocus);
            }
            return(false);
        }