Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Get value from Grid

$
0
0

Hi Pablo,

 

You are doing some mistake, change here in your code:

 

 

if (pVal.FormType == 65214& pVal.ItemUID == "13"& pVal.ColUID == "9"& pVal.EventType == SAPbouiCOM.BoEventTypes.et_GOT_FOCUS & pVal.Before_Action == true


{

     oOrderForm = SBO_Application.Forms.ActiveForm;   

     oGrid = (SAPbouiCOM.Matrix)oOrderForm.Items.Item("13").Specific;       // It is not a Grid, its a matrix on the form

    

      Interaction.MsgBox(oGrid.DataTable.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Value);      

}



I am sure that this will work for you.



Hope it helps.




Thanks & Regards


Ankit Chauhan


Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>