Exemple #1
0
        public TableCell GetCell <TDto>(Expression <Func <TDto, object> > expression)
            where TDto : class
        {
            string headerName = _headerNamesService.GetHeaderNameByExpression(expression);

            return(GetCell(headerName));
        }
Exemple #2
0
        public GridCell GetCell <TDto>(Expression <Func <TDto, object> > expression, int row)
            where TDto : class
        {
            string headerName = HeaderNamesService.GetHeaderNameByExpression <TDto>(expression);
            int?   position   = HeaderNamesService.GetHeaderPosition(headerName, ControlColumnDataCollection);

            if (position == null)
            {
                return(null);
            }

            return(GetCell(row, (int)position));
        }
Exemple #3
0
        public TableCell GetCell <TDto>(Expression <Func <TDto, object> > expression, int row)
            where TDto : class
        {
            string headerName = HeaderNamesService.GetHeaderNameByExpression <TDto>(expression);
            int?   position   = HeaderNamesService.GetHeaderPosition(headerName, ColumnHeaderNames.AsEnumerable <IHeaderInfo>().ToList());

            if (position == null)
            {
                return(null);
            }

            return(GetCell((int)position, row));
        }