Binding a text box to grid problem

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Binding a text box to grid problem

    Hello,

    I was trying the online tutorial on binding data in a cfform. I copied the
    code from the tutorial and it shows up fine, but when I select the row in the
    grid, nothing appears in the text box. Here is the code I have used.

    <cfform format="flash" width="500">

    <cfgrid name="grid" query="artists" selectmode="single">
    <cfgridcolumn name="firstName">
    <cfgridcolumn name="lastName">
    <cfgridcolumn name="city">
    </cfgrid>
    <cfinput type="text" label="First Name" name="city"
    bind="{grid.selectedItem.firstName}">
    </cfform>

    Can someone tell me what I need to do to get this to work?

    Thank you,
    Kevin

    MysticMan324 Guest

  2. Similar Questions and Discussions

    1. Data grid loses binding
      I have three sets of xml connectors, datasets and datagrids in the same document each feeding off three separate xml documents. I have placed three...
    2. Binding from grid to cfselect
      This is what I can do: Select a row from the Grid and bind to to several input boxes. I have select boxes that change the data in the grid (it...
    3. CF Data Grid Binding- New to this CF Stuff
      I amdrunning the demos from http://www.macromedia.com/software/coldfusion/demos/ and the demo for Coldfusion DataGrid and Binding is doing my head...
    4. Binding grid to textInput - hiding NULL ?
      Hi, I have a datagrid and some detail boxes (mostly textInput). If a column is null on the grid, it shows as an empty cell - which is what I want...
    5. data table binding to grid
      We have a data table bound to a datagrid. In the data table, there is a column of type decimal. Since any decimal in this column will always be a...
  3. #2

    Default Re: Binding a text box to grid problem

    Try:
    <cfinput type="text" label="First Name" name="city"
    bind="{grid.selectedItem.FIRSTNAME}">
    </cfform>

    or

    However it is written exactly in your database, not the way it is written on
    the form. I think the capitalization counts.

    Chikowski Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139