Removing the border of the ShinobiDataGrid



I’m currently experimenting with the ShinobiDataGrid and I was wondering if/how I can remove the border which is drawn around the view. I’ve attached a screenshot to show the border I’m referring to.

Btw. I’m using Xamarin.iOS

Thank you!


Have you ever solved that? Looks pretty average in our app as well, but I can’t get rid of it.


Greetings Programs!

I don’t know about Xamarin.iOS but I have found that when you create a grid with a padding, it will give that border:

// create a grid - with a 40 pixel padding
    _shinobiDataGrid = [[ShinobiDataGrid alloc] initWithFrame:CGRectInset(self.view.bounds, 40,40)];

I use initWithFrame:self.view.bounds and it doesn’t give me the border.



This doesn’t work for me, the border remains visible.

I solved the problem with a small hack:
(of course it would be better if Shinobi fixed this issue in the next release)

View.ClipsToBounds = true;
GridView = newShinobiDataGrid(newRectangleF(-1, -1, View.Bounds.Width + 2, View.Bounds.Height + 2));


Put this at the top of the file:

#import <QuartzCore/QuartzCore.h>

then this in your awakeFromNib/viewDidLoad

self.grid.layer.borderWidth = 0;