Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6177033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:12:09+00:00 2026-05-24T00:12:09+00:00

I have to designed a datagrid, in first column i have to use closed

  • 0

I have to designed a datagrid, in first column i have to use closed lock icon. when i click a row in a datagrid the selected rows’ icon should change as opened lock icon. how i can achive this task in flex 3.
please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:12:09+00:00Added an answer on May 24, 2026 at 12:12 am

    this is my coding for achieving above task: When lock is true lock image will display when false pen image will display. On item click the lock will be changed to true to false and vice versa..

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
    <![CDATA[
     import mx.collections.ArrayCollection;
    [Bindable]public var arc:ArrayCollection=new ArrayCollection([{college:"College0",lock:true,status:"in progress" }
    ,{college:"College1",lock:true,status:"in progress" }
    ,{college:"College2",lock:true,status:"in progress" }
    ,{college:"College3",lock:false,status:"in progress"}
    ]);
    private function changeBookletLockStatus():void
    {
    
        arc[dgBooklet.selectedIndex].lock = (arc[dgBooklet.selectedIndex].lock==false);
        arc.refresh(); 
    } 
    ]]>
    </mx:Script>
    
    
    <mx:DataGrid sortableColumns="false" height="100%" width="100%" id="dgBooklet" dataProvider="{arc}" 
     alternatingItemColors="[0xfffffff, 0xe4e4e4]" itemClick="changeBookletLockStatus()" >
        <mx:columns> 
        <mx:DataGridColumn headerText="Column 1" dataField="college" />
    
        <mx:DataGridColumn headerText="icon" dataField="lock" width="40">
            <mx:itemRenderer>
            <mx:Component>
                <mx:HBox paddingLeft="2">
                   <mx:Script>
                    <![CDATA[
                        override public function set data( value:Object ) : void 
                        {
                           super.data = value;
                           img.source=data.lock==true?"assets/lock.png":"assets/pen.png";
                        }
                    ]]>
                    </mx:Script>
                  <mx:Image id="img"  />
                  </mx:HBox>
            </mx:Component>
        </mx:itemRenderer>
    
        </mx:DataGridColumn>
        <mx:DataGridColumn headerText="Status" dataField="status" >
        </mx:DataGridColumn>
        </mx:columns>
    </mx:DataGrid>
    
    </mx:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have designed an xml file contain nine images i.e.., 3 rows each row
I have designed a table (in postgres) where 'id' column is autoincremented via its
i have designed an form in that form contain button when i click on
I have designed a launcher icon 48x48 pixels and placed it in my res/drawable
I have designed many web-templates. But (except my first one) I've never used browser
I have designed database tables (normalised, on an MS SQL server) and created a
I have Designed the Javascript function My.js it contains following code My.js function display(){
I have designed a tabbed page. I'm able to load forms in the tabs
I have designed this gui in netBeans which has a canvas , a couple
I have designed a custom section handler before but I'm faced with a problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.