Skip to Content
author's profile photo Former Member
Former Member

Binnding matrix column with dbdatasource column

Hi experts,

Iam using a matrix to list the sales employeess...(similar to that of SalesEmployee master form ), iam bindng my columns with dbdatasource columns,

so when i bind a column with dbdatasource column of type numeric(19.6), default value of 0.00000 is getting displayed in the column, so how can i prevent displaying 0.00000 .

I want to only display the value if it is >0.

Regards,

RejishRajan.T.N

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 09:32 AM

    HI,

    It is easy. if The cell type is Edit then you can control of the Supperssing Zeros.

    Sample: (i know you have it already)

    To do:

    1. Create matrix add column type it_edit

    2. load data

    3. Set supresszeros to true of the cell !

            oColumn = oColumns.Add("QTY", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "QTY"
            oColumn.Width = 40
            oColumn.Editable = True
            oColumn.DataBind.SetBound(True, "", "QTY")
            ...
           'load data 
           ...
           For i As Integer = 1 To oMatrix.RowCount
                Dim oEditText As SAPbouiCOM.EditText = oMatrix.Columns.Item("QTY").Cells.Item(i).Specific
                oEditText.SuppressZeros = True
            Next
    

    regards,

    J.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.