Form Type - Editable Grid

Hi Friends,

  I created Editable Grid (Form Type). I added 10 records.

 Problem,

          I showed 3 fileds

  [B]Edit  Cancel  ID    Username  Role[/B]
  Edit  Cancel 1      A            Role_Admin
  Edit  Cancel 2      B            Role_super_Admin
  Edit  Cancel 3      C            Role_Admin
  Edit  Cancel 4      D            Role_super_Admin
  Edit  Cance  5      E            Role_super_Admin

I need,
If i clicked the Edit button "Role_super_Admin " rows readonly. If i clicked “Role_Admin” rows editable. Please give me the solution.
Note: Role column is lookup type

Create an ajax event on the lookup. In the onchange you set the field readonly on or off depending on your need using a scriptcase macro.

Hi Aducom,

       I dont want click or onchange the "Role" column. I click only edit button if the rows "Role" column as "Role_Super_Admin" is readonly for entire rows.