Skip to Content
avatar image
Former Member

Bold type format a row in grid sap business one

I would like to make a row with Bold type format in a grid on my addon, I mean in the bp on the payment run all the bp had select some payment method i would like to do that.

i woud like to select like this one.

my code is:


        private void Button2_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent)
        {
            BubbleEvent = true;
            try
            {
                if (oGrid.Rows.SelectedRows.Count > 0)   //VERIFICA QUE EXISTA UN ROW SELECCIONADO
                {
                    int nSelecRow = oGrid.Rows.SelectedRows.Item(0, SAPbouiCOM.BoOrderType.ot_RowOrder)
                    string sValorGrid = Convert.ToString(oGrid.DataTable.GetValue("Código", nSelecRow));
                 
                   


                   // oGrid.Columns.Item("Código").TextStyle = 1;
                   
                    
                  
                }

thank you

grilla.png (30.5 kB)
grilalbp.png (31.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 15, 2017 at 04:28 PM

    Hi Esteban,

    A sample:

    oGrid.CommonSetting.SetRowFontStyle(nSelecRow, SAPbouiCOM.BoFontStyle.fs_Bold);

    Hope it helps.

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member DIEGO LOTHER

      HI Diego,

      sorry to bother you, two more question about the grid:

      1) when a client is already created in the bp table, and in my form push the search buttoon, how can get the selected row in the business parner in my addon?

      2) to get the value of the row and save in a edit.textbox how can i get it?

      thank you again...

      Esteban Peralta

  • Nov 15, 2017 at 04:26 PM

    Hi,

    This question looks same as here. Please close one of the thread to avoid any misunderstanding and delay.

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded