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 3964474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:20:20+00:00 2026-05-20T03:20:20+00:00

I have this datagrid: <mx:DataGrid id=dgCompetenteN includeIn=Test left=10 right=472 top=69 bottom=149 dataProvider={colCompetente} editable=false> <mx:columns>

  • 0

I have this datagrid:

<mx:DataGrid id="dgCompetenteN" includeIn="Test" left="10" right="472" top="69" bottom="149"
             dataProvider="{colCompetente}" editable="false">
    <mx:columns>
        <mx:DataGridColumn headerText="ID Competență" dataField="idCompetenta"/>
        <mx:DataGridColumn headerText="Denumire Competență" dataField="denCompetenta"/>
        <mx:DataGridColumn headerText="Competență Superioară" dataField="idCompSuperioara" rendererIsEditor="true" editorDataField="idCompSuperioara" itemRenderer="renderers.CompetentaSuperioara"/>
    </mx:columns>
</mx:DataGrid>

and this form:

<s:Form includeIn="Test" x="536" y="69">
    <s:FormItem label="Denumire competenta">
        <s:helpContent>
            <s:Label text="Help String"></s:Label>
        </s:helpContent>
        <s:TextInput text="{dgCompetenteN.selectedItem.denCompetenta}"/>
    </s:FormItem>
    <s:FormItem label="Competenta superioara">
        <s:helpContent>
            <s:Label text="Help String"></s:Label>
        </s:helpContent>
        <s:DropDownList dataProvider="{colCompetente}" 
                        labelField="denCompetenta">
        </s:DropDownList>
    </s:FormItem>
</s:Form>

What I want to do is, when I select an item in the datagrid, the selected item of the dropdown should be the correct one (the one which has the field idCompSuperioara equal to the third element in the selected datagrid row).

Any ideas?

Thank you.

  • 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-20T03:20:21+00:00Added an answer on May 20, 2026 at 3:20 am

    Try something along these lines:

    The itemClickHandler:

    protected function dgCompetenteN_itemClickHandler(event:ListEvent):void
    {
      for each (var o:Object in colCompetente)
      {
        if (o.idCompSuperioara == dgCompetenteN.selectedItem.idCompSuperioara)
        {
          ddlCompetenta.selectedItem = o;
          break;
        }
      }
    }
    

    The DataGrid:

    <mx:DataGrid id="dgCompetenteN" includeIn="Test" left="10" right="472" top="69" bottom="149" dataProvider="{colCompetente}" editable="false" itemClick="dgCompetenteN_itemClickHandler(event)">
      <mx:columns>
            <mx:DataGridColumn headerText="ID Competență" dataField="idCompetenta"/>
            <mx:DataGridColumn headerText="Denumire Competență" dataField="denCompetenta"/>
            <mx:DataGridColumn headerText="Competență Superioară" dataField="idCompSuperioara" rendererIsEditor="true" editorDataField="idCompSuperioara" itemRenderer="renderers.CompetentaSuperioara"/>
        </mx:columns>
    </mx:DataGrid>
    

    The form:

    <s:Form includeIn="Test" x="536" y="69">
        <s:FormItem label="Denumire competenta">
            <s:helpContent>
                <s:Label text="Help String"></s:Label>
            </s:helpContent>
            <s:TextInput text="{dgCompetenteN.selectedItem.denCompetenta}"/>
        </s:FormItem>
        <s:FormItem label="Competenta superioara">
            <s:helpContent>
                <s:Label text="Help String"></s:Label>
            </s:helpContent>
            <s:DropDownList id="ddlCompetenta" dataProvider="{colCompetente}" 
                            labelField="denCompetenta">
            </s:DropDownList>
        </s:FormItem>
    </s:Form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF form that contains a DataGrid. This DataGrid is editable. One
I'm having a small problem. I have this grid with a column: <data:DataGrid ColumnHeaderStyle={StaticResource
I have followed this tutorial which allowed me to create a Silverlight DataGrid that
Continuing my problem from yesterday, the Silverlight datagrid I have from this issue is
I am new to Flash and AS3. I have a DataGrid like this Item
I have a datagrid who's ItemsSource is a strongly typed IEnumerable object In this
I have this datagrid which has columns with a NumericStepper as an itemEditor where
I have this code to send variables to a datagrid on another page protected
I have this DataGrid: <mx:DataGrid id=myDataGrid> <mx:columns> <mx:DataGridColumn dataField=colA headerText=Column A: width=40 headerRenderer=path.customComponents.VerticalHeader itemRenderer=path.customComponents.CustomDataGridItemRenderer
I have datagrid. the source for this datagrid is a url that returns n

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.