0 Replies Latest reply on Dec 4, 2007 3:01 AM by luciewong

    Add values to DataGrid

    luciewong Level 1
      Hi,
      I hope someone can help me with this.

      I want to display a Database Table in a Grid.
      ASP writes out the Table's column names dynamic adding a index number and
      the Column records dynamic using the column name adding index number.

      The result looks like this:

      Column Names:
      cName0=ID&
      cName1=formBox&
      cName2=formID&
      cName3=formName&
      cName4=formData
      totRec=4

      And each column has lets say 2 records,
      ASP writes out the column [.Field.name](which is my column header) adding a index number + the [Field.value], where the value can be 1 single record or even an array, like:

      ID0=46&
      formBox0=Default&
      formID0=0,44&
      formName0=0&
      formData0=0&

      ID1=47&
      formBox1=Default, xx, x&
      formID1=0,50,56&
      formName1=0,0,0&
      formData1=0&
      totRec=2

      I manage to set the column headers for the Grid, but how can I get the values in the right column.
      The second day I am on this one.
      Thank you for your help.

      Luciewong