header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Harish
Points:0
Posts:0

7/16/2010 11:56:15 PM

Title: get a column value from datagrid


I have more than one column in my datagrid along with a button.
I want to get anyone one column value by clicking on the corresponding button.
Please Help me with a sample.Thankyou.



1
Wilbur
Points: 510
Posts:0
7/17/2010 8:03:10 AM



on click of button you can get the index where click occurred and then you can extract the value from any column corresponding to the button

2
Shawn
Points: 680
Posts:0
7/17/2010 10:29:13 AM



call the click handler of button inside datagrid

protected function button2_clickHandler(event:MouseEvent):void
{
trace(dGrid.selectedIndex)
// here you can also get value from any column by using the datagrid dataprovider

dgrid.dataprovider[dGrid.selectedIndex].columName

}


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 3+4 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions