Hi Dhiraj,
If you have still any doubt you may check following thread:
http://scn.sap.com/thread/3460290
Besides this, I am not sure whether it is standard or not but as it is provided in SAP B1 SDK Help Files also, so I use it like that only. And some of my friends in my circle also use the choose from list event like this.
If still problem not solved, then you can use it in simple way like this:
if (pVal.ItemUID == enControlName.Matrix && strUid == "CFL_2" && pVal.ColUID == enControlName.PartyCode)
{
SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)m_SBO_Form.Items.Item(enControlName.Matrix).Specific;
string CardCode = oDataTable.GetValue("CardCode", 0).ToString();
string CardName = oDataTable.GetValue("CardName", 0).ToString();
int Row = pVal.Row;
// pVal.Row will give you the currently active row.
try
{
SAPbouiCOM.EditText oEditCardCode = (SAPbouiCOM.EditText)oMatrix.Columns.Item(enControlName.PartyCode).Cells.Item(Row).Specific;
oEditCardCode.Value = CardCode;
}
catch (Exception ex)
{
Program.oMainSAPDI.ShowMessage(ex.Message, BoStatusBarMessageType.smt_None);
}
finally
{
SAPbouiCOM.EditText oEditCardName = (SAPbouiCOM.EditText)oMatrix.Columns.Item(enControlName.PartyName).Cells.Item(Row).Specific;
oEditCardName.Value = CardName;
}
}
Hope it is helpful.
Thanks & Regards
Ankit Chauhan