cancel
Showing results for 
Search instead for 
Did you mean: 

Grid

Former Member
0 Kudos

Hi,

I have populated the Grid using data table. I would like to get the value of the selected row.

How can I achieve this functionality. There is no event for row selection in Grid.

Is it possible to get Values from each column of selected row.

Thanks

Ronald

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Melvin,

Thanks for your thought. How do i get selected rownumber of a grid and under which event should I capture row selection event.

Regards

Ronald

Former Member
0 Kudos

To get the selected row number.

In Itemevent, you can just use pval.row to get the row selected

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Melvin,

Thanks for your timely response. I have a query regarding combo box. I have populated combo box using UserDataSources. Is it possible to make a default selection in combo box

Regards

Ronald

Former Member
0 Kudos

Hi,

try this syntax:

Call cmbName.Select(index, SAPbouiCOM.BoSearchKey.psk_Index)

Former Member
0 Kudos

Hi

you can use something like this

ogrid.DataTable.GetValue(a,b)

assuming ur grid object is ogrid and is binded to a datatable.

Replace 'a' with the column name and 'b' with the row number

Hope this helps