MadamZuZu
06-27-2008, 03:15 PM
Hi,
i'm using a datagrid whichi populates from a sql databse, via coldfusion.
when datagrid is clicked, i need to populate the combobox, the issue is, the database does not have valid index numbers for the data that should go into a combobox, and i can't populate it using the selectedItem...
as i understand, i need to somehow loop around the dataprovider, and get the index numbers?
for(vari:int =0; i <= delds.length; i++)
{
trace( ObjectUtil.toString(item) ); //this gives me ALL objects, not just the current one.
.//index+1 untill i dataprovider name is equals to the selected item on the datagrid.
}
*delds - is my dataprovider name.
i dont understand, how do i reference dataprovider items, one by one, untill it matches up with that one selected from the datagrid?
please help
Thanks!
or am i doing this all wrong?
i'm using a datagrid whichi populates from a sql databse, via coldfusion.
when datagrid is clicked, i need to populate the combobox, the issue is, the database does not have valid index numbers for the data that should go into a combobox, and i can't populate it using the selectedItem...
as i understand, i need to somehow loop around the dataprovider, and get the index numbers?
for(vari:int =0; i <= delds.length; i++)
{
trace( ObjectUtil.toString(item) ); //this gives me ALL objects, not just the current one.
.//index+1 untill i dataprovider name is equals to the selected item on the datagrid.
}
*delds - is my dataprovider name.
i dont understand, how do i reference dataprovider items, one by one, untill it matches up with that one selected from the datagrid?
please help
Thanks!
or am i doing this all wrong?