Separation between columns of a GridView
Posted
#1
(In Topic #897)
Enthusiast

Example, visual:
Column1 | Column2
09/06/2022 10:0009/06/2022
Is it possible, having the width set to automatic, to put a separation between the columns?
how do i do it?
For your misfortunes I am Spanish and I only know Spanish, please, be patient with me, Thank you.
Posted
Regular

Excuse me, can you explain better?gambafeliz said
having the width set to automatic, to put a separation between the columns?
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Enthusiast

I'll explain it visually.
Right now it looks like this: (Width=-1)
Column1 | Column2
09/06/2022 10:0009/06/2022
I wish I could see it like this: (How do I do it, is it possible to do it?)
Column1 | Column2
09/06/2022 10:00 | 09/06/2022
For your misfortunes I am Spanish and I only know Spanish, please, be patient with me, Thank you.
Posted
Guru

gambafeliz said
Hello, Vuott, I'm glad to greet you.
I'll explain it visually.
Right now it looks like this: (Width=-1)
Column1 | Column2
09/06/2022 10:0009/06/2022
I wish I could see it like this: (How do I do it, is it possible to do it?)
Column1 | Column2
09/06/2022 10:00 | 09/06/2022
Did you enable the Grid property to show grid lines? might help.
Other cell/column/row options that could help are
text alignment , you could align left text to left and right text to right
Expand property , this should make all columns equal in size and give you a gap between.
Padding , another way to force a gap.
you could also change Cell background for left and right hand cells , that would make separation clearer
I think you just want Gridview.Grid = True though
Posted
Enthusiast

Honestly, the problem is me, how strange, right?
After looking and looking at my code, I notice that I have the automatic width but just before presenting it there is code that I lost that changes that specific width to fixed and for that the problem, please, I apologize.
I have already solved it.
By the way, how do I close this post?
For your misfortunes I am Spanish and I only know Spanish, please, be patient with me, Thank you.
1 guest and 0 members have just viewed this.


