# Using data from ComboBox and DataGrid

**URL:** https://forum.kirupa.com/t/using-data-from-combobox-and-datagrid/255303
**Category:** flash
**Created:** [March 20, 2008, 9:51pm UTC](https://forum.kirupa.com/t/using-data-from-combobox-and-datagrid/255303 "2008-03-20T21:51:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Germaris](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Germaris](https://forum.kirupa.com/u/Germaris)
#### Post date: [March 20, 2008, 9:51pm UTC](https://forum.kirupa.com/t/using-data-from-combobox-and-datagrid/255303/1 "2008-03-20T21:51:44Z")

</div>

Hi there!

I have a ComboBox (CBBUY) and a DataGrid (DGBUY).  
In the ComboBox, user choose Items Issues of a magazine).  
In the DataGrid appear as Objects all the chosen Items on three columns:  
Item number (nber\_dgc), kind (kind\_dgc) and quantity (qty\_dgc), default value = 1 (qty\_dgc is editable so user can modify it).  
kind\_dgc commands the prices to pay as there is single and double Items.

Questions:

How do I pull out the data contained in DGBUY with updated quantities and then calculate for each row the price to pay depending of the kind\_dgc parameter?  
Should I turn Objects in DGBUY to Strings?  
And how I extract the quantity from each Object in DGBUY?

In the future:  
I wish to use a DataGrid with CellRenderer.  
Where can I find a GOOD Tutorial for this task?

Thank you very much in advance for your answers!

Best regards,  
Gerry
