Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unselect initial cell in ALV OO

oliver_am
Active Participant
0 Kudos

Hi all,

I have an ALV with some colored cells.

The first time you display the ALV the first row is selected so you cannot see the colors.

I want to display the ALV wihtout any cell selected.

I've tried using method SET_SELECTED_CELLS with an empty table but doesnt work.

I've seen there is a method SELECTIONS_CLEAR, but is protected. So I changed the class CL_GUI_ALV_GRID by the class /irm/cl_gui_alv_grid where is public. But nothing, the first cell is always seleted the first time.

I've tried also using ls_layout-NO_ROWMARK = 'X'. but nothing...

I dont want any cell selected. Do you know how can I do it?

Thanks in advance.

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

So where do you want to set the focus?

0 Kudos

Nowhere... but I think it's impossible, isn't it?

The purpose of this is to paint an input field in my screen with colors, its impossible to do it in screen painter, so my idea was to create a tiny ALV with only one cell, but if this cell is selected at the beginning then...

I think I'm going to do it with an HTML container...