Cell Padding, Margin?

Aug 4, 2009 at 3:22 PM

Hi,

I've trawled the web, including these forums, in the hope an answer. I do not like to sound like a complete idiot and nothing is worse than asking a question that I am sure has already been answered. Yet I simply can't resolve this issue.

So forgive me if this issue has been answered and please point be in the right direction.

Question:

I've created a little application, a PBEM game for a few friends, that uses this wonderful grid to display some cheesy tile graphics. All is working well, after much head scratching and swearing at the code.

My problem is these ugly white spaces between the graphics of each cell. if i put text in the cells, the spaces still remain.

Is there anyway to remove this to make the cells "touch" each other?

I know this is purley an aesthetics problem as the grid functions exactly as I need and expect it too.

I can provide a screen shot if needed, but im guessing there is some super simple answer I just havnt spotted.

Regards

 

Aug 4, 2009 at 3:33 PM
This should do it for you (perhaps). Try
var view = new Cell();
view.Padding = new Padding(0.0f);
 
I get no gaps between my cells.
derek