GrapeCity Forums

The GrapeCity Message Boards
Welcome to GrapeCity Forums Sign in | Join | Help
in Search

Listpro 3 column heading Justification

Last post 02-10-2010, 4:11 AM by andrew-webber. 2 replies.
Sort Posts: Previous Next
  •  02-09-2010, 6:30 AM 87175

    Listpro 3 column heading Justification

    Hi There,

    I wonder if  somebody could please point me in the right direction.

     I have added 4 columns to a fplistbox and I want to set column headings.

    The problem that I am having is that the column heading line seems to be right justifying the text, whereas I want it left justified, to start in the same position as each data column.

    If there a setting for specifying the column heading ajustification i.e. left or right

    I am using the following to set the column headings:-

            fpList1.Col = 0
            fpList1.ColHeaderText = "Column N1"
            fpList1.Col = 1
            fpList1.ColHeaderText = "Coloumn N2"
            fpList1.Col = 2
            fpList1.ColHeaderText = "Column N3"
            fpList1.Col = 3
            fpList1.ColHeaderText = "Column N4"

    And then adding items into the list using the following;-

            fpList1.AddItem rstb("col1") & Chr(9) & rstb("col2") & Chr(9) & rstb("col3") & Chr(9) & FormatNumber(rstb("col4"), 0)
     

    The  data in each line seems to be justifying  ok, so I would like to get the column headings using the same justification.

     The result is :-

         Heading 1 

    data 1

    instead of

    Heading1

    data1

     

    Thanks.

     

  •  02-10-2010, 12:13 AM 87196 in reply to 87175

    Re: Listpro 3 column heading Justification

    Hello,

    You may use the following code to set the alignment of the column header text to right.

    fpList1.ListApplyTo = ListApplyToColHeaders
    fpList1.AlignH = AlignHLeft

    I hope it will help you.

    Thanks,

     


    Deepak Sharma
    GrapeCity FarPoint
  •  02-10-2010, 4:11 AM 87200 in reply to 87196

    Re: Listpro 3 column heading Justification

    That's great, thank you for your assistance.

     

    Andrew.

     

View as RSS news feed in XML
     FarPoint Forums Home