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.
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
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
}