[CLOSED] Center image command in column

  1. #1

    [CLOSED] Center image command in column

    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
    Last edited by Daniil; Jan 08, 2013 at 8:24 AM. Reason: [CLOSED]
  2. #2
    Hi @jchau,

    Unfortunately, ImageCommandColumn doesn't support the Align property.

    We would be happy to implement some CSS solution. Do you have any suggestion?
  3. #3
    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.

Similar Threads

  1. Replies: 1
    Last Post: May 16, 2012, 12:57 PM
  2. [1.0] Image Command + Text Wrapping
    By mj.daly in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2011, 9:21 AM
  3. Replies: 3
    Last Post: Dec 09, 2010, 5:40 AM
  4. Image Command problem
    By gayancc in forum 1.x Help
    Replies: 2
    Last Post: Nov 19, 2010, 6:57 PM
  5. Center Align Image in Grid cell
    By bsnezw in forum 1.x Help
    Replies: 0
    Last Post: Aug 25, 2009, 12:25 PM

Posting Permissions