Remove padding/borders between Grid cell rows & columns

JeremyThompson.9126JeremyThompson.9126 AUMember
edited July 2015 in Xamarin.Forms

I am trying to remove the cell padding/borders in a Grid. I have read this thread: https://forums.xamarin.com/discussion/23295/can-the-padding-between-rows-in-a-grid-be-changed but none of the methods discussed there allow me to remove the spaces. How do I remove the invisible cell borders?

I've tried :

<Grid.RowDefinitions RowSpacing="0" 
<Grid.ColumnDefinitions ColumnSpacing="0" 

And obviously I've tried Padding="0" in the <Grid and <Grid.RowDefinitions and <Grid.ColumnDefinitions, but no luck.

Tagged:

Best Answer

Answers

  • BuckSurduBuckSurdu USMember, University

    This solution didn't work for me. Using this example, it wants the parameter in a string, then it throws an error during execution that the string is in the wrong format.

  • JeremyThompson.9126JeremyThompson.9126 AUMember
    edited December 2015

    @BuckSurdu What is the error you get? This solution worked perfect for me.

    Are you making the Grid with XAML or in Code? Show us what you've got that doesn't work.

  • Nick-BNick-B USMember ✭✭

    @BuckSurdu said:
    This solution didn't work for me. Using this example, it wants the parameter in a string, then it throws an error during execution that the string is in the wrong format.

    <Grid RowSpacing="0" ColumnSpacing="0">

    Giggity

Sign In or Register to comment.