Ejemplo n.º 1
0
        /// <summary>
        /// Determines whether the specified row index is associated with FilterRow.
        /// </summary>
        /// <param name="dataGrid">
        /// The SfDataGrid.
        /// </param>
        /// <param name="rowIndex">
        /// The corresponding rowIndex to determine the FilterRow.
        /// </param>
        /// <returns>
        /// Returns <b>true</b> if the specified row index is FilterRow; otherwise , <b>false</b>.
        /// </returns>
        public static bool IsFilterRowIndex(this SfDataGrid dataGrid, int rowIndex)
        {
            if (rowIndex < 0)
            {
                return(false);
            }

            return(dataGrid.GetFilterRowIndex() == rowIndex);
        }