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.
Put the spacing properties in the grid, not the row/column definitions. <Grid RowSpacing=0, ColumnSpacing=0
Answers
Put the spacing properties in the grid, not the row/column definitions.
<Grid RowSpacing=0, ColumnSpacing=0
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.
@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.
<Grid RowSpacing="0" ColumnSpacing="0">
Giggity
Thanks...