on 06-03-2005 3:43 PM
Hi
I'm using CL_GUI_ALV_GRID to display an ALV grid. Can I get rid of the standard "select all" icon from the top left corner of the grid? I don't want the user to be able to use this icon, but can't see a way of removing it.
Regards
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil,
I also came across the same problem you mentioned.
There are two ways of doing this-
1. you dont want Icon but you want individual row selection-
in this you can use NO_HEADERS field in layout structure of LVC_S_LAYO.
so put this flag to true and you can get rid of "Select All" Icon.
2. if you not at all want either icon or selection-
in this you can use NO_ROWMARKS field in layout structure of LVC_S_LAYO.
so put this flag to true.
Regards,
Neel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil
That means you do not want the user to select multiple rows. Because letting the user to select multiple rows always gives him the opportunity to select all rows even without using the button you mentioned.
Then you must set the "sel_mode" of the layout structure to "B" to make user select one row only.
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the first instance I wanted to be able to make certain rows 'greyed out' ie non-selectable but I couldn't find a way to do this. I do want the user to be able to select multiple rows but not have an easy way of selecting all the rows (as this would include all the rows I wanted to exlude). I will go down this route though and add a couple of buttons to the toolbar - unless you can adivese me how to make certain rows of an alv non selectable?
cheers
Hi Phil
As far as I know there is no way to make particular rows selectable and some others not. Selection mode applies to the whole list. And as I mentioned earlier, giving the user multiple select option, you will always, even easy or not, give him the possibility to select all rows.
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil,
You can pass the value CL_GUI_ALV_GRID=>MC_FC_SELECT_ALL to the IT_TOOLBAR_EXCLUDING parameter of the method SET_TABLE_FOR_FIRST_DISPLAY .
Regards,
Anand Mandalika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.