I want to be able to copy values from one single cell but also to select the entire row

I have an app where my users want to be able to copy the value of a single cell, but when clicking a row, they need to get information about the entire row below the grid.

If you use

gb.configure_selection(selection_mode=‘single’)

then we can achieve the correct result for selecting the row by using below functionality:

test_grid = AgGrid(
xxxxx
)
selected_row = test_grid[‘selected_rows’]

But then I am only able to copy the value of the entire row at a time.
If I change the selection to be a range, the ‘selected_rows’ gives me ‘None’.

How can I get around this so that the user is not forced to copy the entire row, but only the selected value?