issue with alterStyle:(SDataGridCellStyle *)styleToApply beforeApplyingToCellAtCoordinate:(SDataGridCoord *)coordinate {


#1

I tried this with a section index but some rows below were affected even if the value doesnt meet the condition.

-(void)shinobiDataGrid:(ShinobiDataGrid *)grid alterStyle:(SDataGridCellStyle *)styleToApply beforeApplyingToCellAtCoordinate:(SDataGridCoord *)coordinate {
    
    _editingCell = (SDataGridCoord *)coordinate;
    
    
    
    SDataGridCell *cell = (SDataGridCell*)[grid visibleCellAtCoordinate:_editingCell];
    
    OrderGroup *group=_sortedData[cell.coordinate.row.sectionIndex];
    
    OrderDetailProduct *order=group.groups[cell.coordinate.row.rowIndex];
    
    styleToApply.backgroundColor=[UIColor clearColor];
    
    if ([order.Status isEqualToString:@"Done"]) {
                 styleToApply.backgroundColor = [UIColor colorWithRed:252./255. green:225./255. blue:225./255. alpha:1];
       
    }
     
    
}

#2

fixed already i remove the _editingCell.