Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Container

    Can someone explain what the Container object is, and how it it related
    to data binding? I can't find any reference for it anywhere.

    Mike
    Mike Chamberlain Guest

  2. Similar Questions and Discussions

    1. CSS Clear within container only
      I have a 3 column design with the lfet and right columns floated and the center ones margins set to avoid the floats. I want to float something...
    2. Naming container
      I'm having a problem with a linkbutton which is not assigned a UniqueID with all the prefixes for some reason. The linkbutton resides in a...
    3. FXRuby and OLE container ?
      This is a multi-part message in MIME format. ------=_NextPart_000_0397_01C36250.A5A0A420 Content-Type: text/plain; charset="iso-8859-1"...
    4. [PHP] Container functions....
      Justin: Not ColdFusion - ancient language by Brian Fox called MetaHTML - actually a VERY good language - just not supported or developed anymore...
    5. Container functions....
      In a language that I used to program in - for development we used to be able to make a function that basically just executed everything inbetween:...
  3. #2

    Default Re: Container

    When you write DataBinding syntax a method is created that gets called for
    every row that will be created for your databinding control. Container is
    a local variable in that method which is a reference to the row in the control
    that was just created. DataItem is typically the property on the row object
    that references the row from the original data source that the row is built
    from.

    A great way to understand what's going on is to do this:

    <ItemTemplate><%# Container.DataItem.GetType().FullName %></ItemTemplate>

    This will emit the type of object Container is. For different data bound
    controls you'll see different output. Once you know the Container type, then
    go look up in the docs about it.

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]


    > Can someone explain what the Container object is, and how it it
    > related to data binding? I can't find any reference for it anywhere.
    >
    > Mike
    >


    Brock Allen 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