in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Cell indention

Last post 01-31-2008 2:27 AM by citizen.ron. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-30-2008 2:34 AM

    Cell indention

    Hi everybody,

    I am trying to implement an indention in the flexgrid cell using the Column.Format property.

    if I set the format to "#,##0 €" it works fine, result would be for example "12,345 €"

    What does not work is for example Column.Format = "0    "; it seems, the format string is being trimmed by the base class.

    How can I implement an indention for numbers, aligned right, but not "sticking" to the very border of the cell?

    thanx in advance

    ron

  • 01-30-2008 8:14 AM In reply to

    Re: Cell indention

    Hi Ron,
     
    I would suggest use of margin property of the style collection. Here is one implementation:
     

    Dim cs As C1.Win.C1FlexGrid.CellStyle = fg.Styles.Add("new")

    cs.Margins.Right =10

    Me.fg.Cols(1).Style = cs

    Regards,

    Dave

    <citizen.ron> wrote in message news:201448@10.0.1.98...

    Hi everybody,

    I am trying to implement an indention in the flexgrid cell using the Column.Format property.

    if I set the format to "#,##0 €" it works fine, result would be for example "12,345 €"

    What does not work is for example Column.Format = "0    "; it seems, the format string is being trimmed by the base class.

    How can I implement an indention for numbers, aligned right, but not "sticking" to the very border of the cell?

    thanx in advance

    ron



    http://helpcentral.componentone.com/cs/forums/p/74144/201448.aspx#201448

  • 01-31-2008 2:27 AM In reply to

    Re: Cell indention

    Hi Dave,

    hadn´t paid attention to that property.

    Works like a charm and serves my purpose well - thank you very much

    ron

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.