Separation between columns of a GridView

Post

Posted
Rating:
#1 (In Topic #897)
Enthusiast
gambafeliz is in the usergroup ‘Enthusiast’
 I have a GridView where the width of the columns is set to automatic (Width=-1) but I have a problem.

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. :)
Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
vuott is in the usergroup ‘Regular’

gambafeliz said

having the width set to automatic, to put a separation between the columns?
Excuse me, can you explain better?

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#3
Enthusiast
gambafeliz is in the usergroup ‘Enthusiast’
 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

For your misfortunes I am Spanish and I only know Spanish, please, be patient with me, Thank you. :)
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘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 :)
Online now: No Back to the top

Post

Posted
Rating:
#5
Enthusiast
gambafeliz is in the usergroup ‘Enthusiast’
Thank you all you have said helps.

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. :)
Online now: No Back to the top
1 guest and 0 members have just viewed this.