sDBGrid

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38155
    MetroFX
    Participant

    Is it possible to combine the column headers in sDBGrid?

    #59108
    Support
    Keymaster

    Do you mean something like attached image?

    Try to specify captions of columns with '|' divider like this:

    Code:
    item
    Expanded = False
    FieldName = 'Address1'
    Title.Caption = 'Address|First'
    Width = 184
    Visible = True
    end
    item
    Expanded = False
    FieldName = 'Address2'
    Title.Caption = 'Address|Second'
    Width = 50
    Visible = True
    end
    #59114
    Stephane Senecal
    Participant

    Wow I didn't know that. That's nice!

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #59127
    MetroFX
    Participant
    'Support' wrote:

    Do you mean something like attached image?

    Try to specify captions of columns with '|' divider like this:

    Code:
    item
    Expanded = False
    FieldName = 'Address1'
    Title.Caption = 'Address|First'
    Width = 184
    Visible = True
    end
    item
    Expanded = False
    FieldName = 'Address2'
    Title.Caption = 'Address|Second'
    Width = 50
    Visible = True
    end

    Thanks. I rather feel something like that. I need to group some columns as in the attached picture.

    I'm sorry, but it works. But how to do it to align the text in the first line “Address”

    #59131
    MetroFX
    Participant

    Again. Everything works, but not the end. I added a screenshot and as you can see, the first row is formatted differently.

    #59184
    Support
    Keymaster
    'MetroFX' wrote:
    Again. Everything works, but not the end. I added a screenshot and as you can see, the first row is formatted differently.

    Do you mean a different aligning of text? I will check it.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.