on 01-06-2015 4:35 AM
Hi,
I can't get the index of selected combo box inside my grid. I can change the value of combox using only this code.
oForm.Items("grdConfirm").Specific.Columns.item(0).SetSelectedValue pVal.Row, oForm.Items("grdConfirm").Specific.Columns.item(0).ValidValues.item(0)
Thanks,
Raphael
Hi Raphael,
May I know why you need the index ?
I would usually get the Value directly from the DataTable.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raphael,
The value you are trying to assign to this column exceeds the data size of the column.
To get the Value Selected.
Dim oGrid as SAPbouiCOM.Grid = oForm.Items("grdConfirm").Specific
oGrid.DataTable.GetValue(0, oGrid.GetDataTableRowIndex(pVal.Row))
Make sure that the 0 is the columns you are trying to set/get.
Regards
Edy
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.