DataGrid: Separator/margin beneath individual rows


I’ve created a fake “Total” row in my DataGrid. I’d like to add (say) a 2px margin at the bottom this total row; a simple separator.

Is it possible to add such a margin to specific rows? I just need a small gap between the total row and the next deatil row.




protected virtual Foundation.NSNumber HeightForRow (ShinobiDataGrid grid, nint rowIndex, nint sectionIndex)

Check to see if it’s your Total row based on the rowIndex and sectionIndex and return a different row height for it.

Use AlterStyleBeforeApplyingToCellAtCoordinate to change the styleToApply.contentInset to add a little padding (it won’t change the row height though).



Perfect! Many thanks