How to make specific cell(s) read-only in a data-grid

Hi there!
Is there a way to make an specific cell read-only in a data-grid?
Best regards,
Ciro

Hi !
After some months... here is the solution:
Private WithEvents _gridTaste As DataGrid
Private Sub MyScreen_Created()
AddHandler FindControl("GridTaste").ControlAvailable,
Sub(s, e)
_gridTaste = CType(e.Control, DataGrid)
End Sub
End Sub
Private Sub _gridTaste_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs) Handles _gridTaste.BeginningEdit
' I want do set the cell (2,0) as read only:
If e.Row.GetIndex = 2 AndAlso e.Column.DisplayIndex = 0 Then
e.Cancel = True
End If
End Sub
I hope this post help you too!
Best regards,
Ciro

Similar Messages

  • How to make a cell/column read only

    HI All,
    Is there any way to make a specific cell read only with in a specific data form?
    Similarly is there any way to make whole column read only inside a specific data form?
    I don't want to make changes in my dimension member (e.g Dynamic Calc), i want to make these changes at data form level because, these cell/column are read only at one form but on some other data form they are editable/enterable

    If you want to make a column read only then have a look at asymettric columns in the planning admin doc, if you use them then you can make one of the columns read only.
    If you want a make one cell read only then one method could be to use javascript, you could add an extra member which is dynamic calc and point to the original member with a formula but it doesn't sound like you want to do that.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to make a DFF in read only mode

    Hi All
    There is a requirement to male an descriptive flexfield (in Puchasing PO Headers) i read only mode for all the users.
    So that user must not select any values, Is any way to do this. Any workaround is possible ?
    Regards

    Hi;
    Please follow below and see its helpful:
    [Solved] How to make a DFF segment 'Read-Only' using Form Personalization?
    Also check:
    http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/ogenff03.htm
    Regard
    Helios

  • How to make a DFF as Read only field

    How to make a DFF as Read only field

    Hi,
    You can add the read only token ($RO$) to any of the segments in the list. For example:
    segmentlist = "Context1|Segment1($RO$)|Segment2..."
    Thanks,
    Kumar

  • How to make few DFF fields read only in Forms

    Hello.....
    I am having an Issue in forms customization through custom.pll
    I need to make few DFF fields read only in HRMS enter and maintain form through custom.pll
    I tried with fnd_descr_flex.update_definition but in vain
    So please help me how to rectify this issue.
    Edited by: user.nazeer25 on Jul 9, 2010 5:27 AM

    Hello,
    Wrong forum.
    Ask this kind of question in the E-Business Suite forum ;-)
    Francois

  • How to make a checkbox as read-only ?

    Hi,
      My current requirement is to make a checkbox as read-only. Previously, the checkbox has been declared as
    PARAMETERS: cb_gr AS CHECKBOX DEFAULT 'X'.
    Now am required to make this as read-only. There are <b>no screens</b> defined in the report containing this checkbox and so am not knowing where to give the statement
    LOOP AT SCREEN.
    **Make the checkbox as disabled**
    ENDSCREEN.
    It is known that this statement has to be given in the PBO of a screen. So kindly guide me at the earliest on how to resolve this issue.

    Hi aISWARYA  ,
    Here is the Example for  making the report  parameter as  Read only  using the Report  Event  ,   Dont need and  screen Number for it , becuase  your selections itself is an Defualt 1000 screen which as   PAI & PBO , in which it maintains this Report Events in it  .
    "Change the Input Fields Dynamically in a Screen
    'The following example may help you:
    SELECTION-SCREEN BEGIN OF BLOCK 001.
    PARAMETERS: P_MRU  RADIOBUTTON GROUP SEL DEFAULT 'X' USER-COMMAND AC,
                P_PART RADIOBUTTON GROUP SEL.
        SELECT-OPTIONS P1 FOR <field> MODIF ID PRT.
        SELECT-OPTIONS G1 FOR <field>  MODIF ID MRU.
    SELECTION-SCREEN END OF BLOCK 001.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF P_MRU = 'X'.
          IF SCREEN-GROUP1 = 'PRT'.
            SCREEN-INPUT = '0'.
          ENDIF.
          IF SCREEN-GROUP1 = 'MRU'.
            SCREEN-INPUT = '1'.
          ENDIF.
      ELSEIF P_PART = 'X'.
         IF SCREEN-GROUP1 = 'MRU'.
           SCREEN-INPUT = '0'.
         ENDIF.
         IF SCREEN-GROUP1 = 'PRT'.
           SCREEN-INPUT = '1'.
         ENDIF.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
    Reward points  if it is usefull .......
    Girish

  • How to make a schema really READ ONLY

    Our legacy database is on 11.2.0.1/Redhat. Last week, one developer by accident changed the legacy schema by executing drop/creat/alter table commands. This causes big problem. Now we want to make the legacy schema absolutely read only. Thus nobody can change the schemas object and data.
    There were posts talked about make the tablespace toe read only. That stopped inserting/deleting but one can still change the schema objecs with create, drop and alter, e.g.11:31:41 SQL> create table DUMMY(dummy int);
    Table created.
    11:32:06 SQL> alter table dummy add ( address varchar(20));
    Table altered.
    11:24:14 SQL> drop table DUMMY ;
    Table dropped.How can I stop this type of changes to the schema?

    Revoked most privileges from user LCCH (this is the one I want its schema READ ONLY), only leftselect distinct privilege,admin_option from (
    select r.role,user,r.privilege,r.admin_option from role_sys_PRIVS r
    union
    select 'sys',p.* from user_sys_PRIVS p order by 1,2,3
    PRIVILEGE                                ADM
    CREATE SESSION                           NO
    SELECT ANY DICTIONARY                    NO
    SELECT ANY TABLE                         NONow user LCCH can still create table in its own schema13:08:49 SQL> show user
    USER is "LCCH"
    13:08:56 SQL> create table lcch.DUMMY(dummy int);
    Table created.
    13:09:33 SQL> drop table dummy purge;
    Table dropped.I double checked the privileges granted and confirm that schema has not role granted, no object privileges granted and only the above 3 system privileges granted.

  • How to make a column as read only for update integrator.

    Hi All,
    i came across one issue while creating integrator.
    for update integrator i have column rowid.rowid is a parameter. by using this(rowid) i'am updating.i want to make rowid column as read only .
    if i enable read only for rowid,then it is passing null as parameter and inserting new row instead of updating the row.
    If any one came across this problem you can help me in fixing this issue.

    Hi Sanket,
    Thanks for reply.
    i have created a dummy column and passed the value of the orginal column values to dummy cloumn. and hided the orginal column.
    in this process i have come across same issue. it is not passing the value as parameter and instead of updating the row it is inserting an new row.
    Any alternate for this scenario.
    Thanks in advance.

  • To make table cell as read-only based on some condition

    Hello ABAPers,
    I have a requirement to make the cell in the table of a Web Dynpro component read-only. There are 4 fields in the Table of a view which is mapped to the Context attribute, i.e. function, Number, Description etc. When the value of the Field 'Function' is
    '0000016', I have to make the Number field as READ-ONLY(non-editable).
    As suggested in SDN forums, I have created the sub-node to the main node in Context and added an attribute 'READ_ONLY'. I have made the cardinality as 1:1. I have also created the Supply Function Method(ZREADONLY) for sub-node that I have created and also set the context binding to the Read only property of the field 'Number' in the View Layout.
    PFB the coding I have done in supply function method for setting the read-only attribute for the number field, but it is not working. Could anyone let me know what is the change I have to make this work?
    DATA ls_parent_attributes TYPE wd_this->element_partner_h.
    DATA l_partner LIKE ls_parent_attributes-partner _fct
    Constants c_parent LIKE ls_parent_attributes-partner_fct VALUE '000016'.
    DATA ls_zread_only TYPE wd_this->element_zreadonly
    parent_element->get_static_attributes(
       IMPORTING
              static_attributes = ls_parent_attributes).
    CLEAR l_partner.
    l_partner = ls_parent_attributes-partner_fct.
    IF l_partner = c_partner.
        ls_zread_only-readonly = abap_true.
         node->bind_structure(
         new_item = ls_zread_only
         set_initial_elements = abap_true ).
    ELSE.
        CLEAR ls_zread_only-readonly.
        ls_zread_only-readonly = abap_false.
        node->bind_structure(
         new_item = ls_zread_only
         set_initial_elements = abap_false ).
    ENDIF.
    Thanks for your time!
    Regards,
    M M Jaffer

    Hi,
    the solution is quite simple.
    Bind the property reaonly in the layout editor to the property readonly of the context-attribute.
    Therfore you have to click at the binding button of the celleditor of the property read-only.
    Then you select the  radiobutton in front of Bind to the property of the selected Attribute and choose Property R.
    In you coding you have to fo the following in case you do that after binding the itab to the context:
    node->bind_table( .... ).
    data lt_elements type wdr_context_element_set.
    lt_elements = node->get_elements( ).
    LOOP at lt_elements into element.
    element->get_attribute(
          exporting
            name = 'PARTNERFCT'
          importing
            value = lv_partnerfct
      if lv_partnerfct eq c_partner.
        call method lo_el_position->set_attribute_property
          exporting
            attribute_name = 'PARTNERFCT'
            property       = element->e_property-required
            value            = 'X'.
      else.
        call method lo_el_position->set_attribute_property
          exporting
            attribute_name = 'PARTNERFCT'
            property       = element->e_property-read_only
            value            = ''.
      endif.
    endloop.
    Of corse you have to modify the coding and i didn´t checked the syntax, baut this should help.
    Best regards, Matthias

  • How to make select list as read only

    Hi All.
    when i m loading a page ...how to make value of select list as read only ..
    i tried doing this ....
    i added readonly attribute to the select list's element attibute ...it is showing as read only field by darkening the select list field but ... the select list is editable even now... its allowing to choose from drag and drop ...
    Thanks & Regard ,
    Nandini

    I have the same requirment..
    I have a select list on a editable form and i want to make that one read only.
    When I use read only property it doent do anything. (But this is working for text items well).
    When I use "disabled' option it works fine. But then that value does not post when use POST the form. So making select list disabled is not a solution.
    Any Idea..
    Thanks
    mc

  • How to make a User Field Read Only?

    Hi,
    How can i make a title userfield in a Document Form read only?
    I can't set enabled to false i just want to make it read only.
    I had tried to capture de key_down event on the user field, nothing happens!
    I had tried to capture de form_key_down event on the user field... SAP throws the event without the item id reference.
    Is there a work-around for this?
    thanks,
    Ricardo Momm

    Hi,
    1. capture et_click and click to another item, also save the original value to a variable
    and/or
    2. use et_validate with before_action = true to be sure the item hasnt changed and set bubbleevent
    to false when the value is different from the variable
    regards
    David

  • How to make the fields dynamic read only in live cycle designer

    hi folks
    I have created a form in Adove livecycle es. Some fields should be read only from the start. So i have set the property .access 'open'. In versions of Adobe 8 this works, but in the latest version  it won't so i think it should be done via another solution. Does anybody know how?
    kind regards,
    Anton Pierhagen

    May be the below code may help.. It loops thru all the pages in the PDF form and make them protected. So the user can not change any value in the form.
    for (var i = 0; i < xfa.host.numPages; i++)
    var oFields = xfa.layout.pageContent(i, "field");
    var nodesLength = oFields.length;
    //set the access type to be protected for all fields
    for (var j = 0; j < nodesLength; j++)
    var oItem = oFields.item(j);
    oItem.access = "protected";
    Thanks
    Srini

  • How to make a page in read only

    Hello,
    I am using 11.1.1.4, I am having a requirement to display all the components on my page read only when first time page loaded, By clicking on 'Edit' button I have to make all components in editable. I am using Transient View object to render various components on my page. I have 50 components approximately on my page. How can I make page read only with very minimal changes?
    Thanks

    Try something like that:
            public static void disableControls(UIComponent component, Object[] disabledParam) {
               Iterator<UIComponent> i = component.getFacetsAndChildren();
               while (i.hasNext()) {
                     UIComponent child = (UIComponent) i.next();
                     Class mc = child.getClass();
                      try {
                         Class[] cls = {boolean.class};
                         Method setDisabled = mc.getMethod("setDisabled", cls);
                         setDisabled.invoke(child, disabledParam);
                         AdfFacesContext.getCurrentInstance().addPartialTarget(child);                 
                      } catch(NoSuchMethodException ex){
                      } catch(Exception e) {
                         log.error(...);
                     disableControls(child, disabledParam);
               } // of while      
            }if you pass {Boolean.TRUE} as second param, you will disable all children of first param component.
    Next, in the JSF page, yuo need something like follows:
            <af:clientListener type="load" method="onPageLoad"/>     
            <af:serverListener type="disable" method="#{myBean.handleDisable}"/>
        </af:document> The javaScript part:
    function onPageLoad(event) {
      var source = event.getSource();
      AdfCustomEvent.queue(source,"disable", {}, false);
    }And finally , here is handleDisable() Java method, in which you should call disableControls() utility method:
        public void handleDisable(ClientEvent event) {
            disableControls(_some_UI_comp, new Object[]{Boolean.TRUE});
        }

  • How to make OM responsibility as read-only in oracle applications R12

    Hi there - We want to make read-only access in a staggered approach. We are a manufacturing company and are going live with R12 in different countries at different times. So once we go live with UK, we would like to have the UK only responsibilities be made read-only. So, I like the idea of identifying all the functions associated for the top menu of each responsibility and run an update on the fnd_form_functions, but can this somehow be linked to the Profile Options table, so it can also be filtered out by OU? Or are there any other suggestions out there that might work? As we have over 600 responsibilities in 11.5.10 that we would need to go through and determine which ones need to be made read-only at specific times. This is not so much a problem on the Financials side as we have some existing read only responsibilities to use, but more so on the manufacturing side. Thank You

    Sandeep Gandhi, Independent Consultant wrote:
    HR:Query Only Mode is applicable to HR responsibilities only.
    The thread subject mentioned OM responsibility.As Hussein said earlier, you will have to create new menu(s).
    Sandeep GandhiThanks Sandeep..
    we just want the same menus which are available for OM super user resp..so in that case...what should be the approach??bcz we want to attach inquiry resp to users..who are not allowed to do any transactions...
    so what we did is basically created a new OM resp with same menu...this is where we stopped..don't know what to do next
    Please advise
    Mahendra

  • How to make an list row Read only

    Hi All,
        Can anyone please tel me how to make the List row (list item) read only where the status column value is Submit.(i.e the whole row has to be made as readonly, am using event handler to try this out)
    Thanks in advance 

    Hi,
    According to your description, my understanding is that you want to set the list item read only based on the status column.
    If you want to do it using Event Receiver, you need to check the status column value using Server Object Model, then break role  Inheritance and rest role assignments to set the item read only.
    Here are some detailed code demo for your reference:
    Change SharePoint list item permissions to Read only programmatically
    How to: Create an Event Receiver
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • How to keep score in a simple game?

    Hi - I'm building a simple multiple choice game. There is 5 questions, each with 2 different answers. Which ever answer the user chooses on each question - they will either gain or lose money - eg. Answer A: Lose £2 Answer B: Gain £4 I'm looking for

  • No more delta update on apple's website?

    Why apple cut off the delta download for leopard from his site? Now there are available only the combo?

  • What is my Db timezone?

    Hi, i want to find out if my DB is in GMT timezone or Buc/France timezone.. i gave this query: SQL> select DBTIMEZONE from dual; DBTIME +02:00 I also tried to query NLS parameters but in value column its blank.. pls help thx

  • How can I call a procedure?

    Hello, I have a procedure called p_doc_xks inside the package TS_X_DOC. I need to call this procedure passing an Integer ( num_valor ) and will return a String ( msg_resultado ). With these datas, is it possible someone help me? Thanks!

  • DVD Stutter and Stall

    I am having a heck of a time making DVD's that don't stall or stutter, I guess I need a starting point. What I do is stop frame capture 8mm and super8mm film, it plays on a special projecter and is passed through my Canon HD video camera to my comput