View Full Version : [CLOSED] Center image command in column

Jan 07, 2013, 3:20 AM
I have an image command column with width = 100. How do I center the image commands in that column? Right now, they are left aligned. I tried setting Align property but that didn't work.

Dim col As New ImageCommandColumn
With col
.Width = Unit.Pixel(100)
.Align = Alignment.Center
.Text = "Review"
.Locked = False
.MenuDisabled = True
.Sortable = False
End With

Jan 07, 2013, 12:53 PM
Hi @jchau,

Unfortunately, ImageCommandColumn doesn't support the Align property.

We would be happy to implement some CSS solution. Do you have any suggestion?

Jan 07, 2013, 5:28 PM
I see that now commands are floated in the cell. I don't think there's an easy CSS way to center things so it's not a big deal. I will add some padding so the image commands are not right next to the grid lines.