public TableCell GetCell <TDto>(Expression <Func <TDto, object> > expression) where TDto : class { string headerName = _headerNamesService.GetHeaderNameByExpression(expression); return(GetCell(headerName)); }
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)); }
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)); }