# Display Data Grid with user selection

**URL:** https://forum.kirupa.com/t/display-data-grid-with-user-selection/298102
**Category:** flash
**Created:** [October 13, 2009, 7:05pm UTC](https://forum.kirupa.com/t/display-data-grid-with-user-selection/298102 "2009-10-13T19:05:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![puthem1st](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@puthem1st](https://forum.kirupa.com/u/puthem1st)
#### Post date: [October 13, 2009, 7:05pm UTC](https://forum.kirupa.com/t/display-data-grid-with-user-selection/298102/1 "2009-10-13T19:05:21Z")

</div>

Hello All,

I’m in search of some help displaying a data grid with the content the user selected when the “CheckOut” Button is submitted. Thus far I have two products on the main the user can choose from and based on their selection I would like the product, quantity, and price they chose to be displayed. I have the data grid be called through a .as file. Nothing is happening right now the way I have it set up so I am at a lost. Any help is greatly appreciated. Thanks in advance!👼

```auto

public function CheckOut() {
  // Create a a new instance of DataGrid and name it "data_grid"
  var datagrid_AS:DataGrid = new DataGrid();
  var col3 = datagrid_AS.addColumn("Product Name");
  var col3 = datagrid_AS.addColumn("Quantity");
  var col3 = datagrid_AS.addColumn("Total");
  col3.minWidth = 350;
 }

```

I’m trying to upload the .zip file but it’s giving me an error. So I will explain what’s on the main .fla. I have 2 products with numeric steppers that the user can select their quantity plus an add me button. I have a dynamic text field that keeps the total based on what products has been selected so now when the user selects the check out button I want to display in a data grid what they have chosen before submitting to pay pal! Thanks again
