cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get Selected Value in Combobox Column (Grid Object)

Thiago_Moura
Explorer
0 Kudos
88

Hello experts!

I created a ComboBox column in my grid object using the following line of code:

Grid0.Columns.Item(8).Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox;

 

I have a DataTable and a grid.

I call the ExecuteQuery() method on DataSources.DataTable and then transform the column type to ComboBox. Additionally, I am populating the field with valid values.

The problem is: how can I retrieve the value selected by the user on the screen? When I select a value from the list, the field remains null (nothing is selected).

The user will open the list of valid values and select one of them. I tried to create a UserDataSource to bind the column, but I believe that's not possible for grid objects.

How can I display the ComboBox and fill the field with the value selected by the user?

Thiago_Moura_0-1750193471027.png

 

I tried this code above, but it shows the error {"Valid Value - Value does not Exist [66000-62]"}

Thanks!

Accepted Solutions (0)

Answers (0)