Extra "DataValueFields" in custom DropDownList

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Extra "DataValueFields" in custom DropDownList

    Hi

    I am building a custom databound dropdownlist, and I would like to have
    more than one "DataValueField". I would name them DataValueField2,
    DataValueField3, etc.

    I'm having trouble figuring out how I would bind to them.

    Any help would be appreciated. Thanks.

    - Richard

    groovyghoul Guest

  2. Similar Questions and Discussions

    1. #26218 [Opn->Fbk]: mail() sends extra "RCPT TO: <>" to smtp host
      ID: 26218 Updated by: pollita@php.net Reported By: bzheng at us dot nomura dot com -Status: Open +Status: ...
    2. #26218 [NoF->Opn]: mail() sends extra "RCPT TO: <>" to smtp host
      ID: 26218 User updated by: bzheng at us dot nomura dot com Reported By: bzheng at us dot nomura dot com -Status: No...
    3. #26218 [Opn->NoF]: mail() sends extra "RCPT TO: <>" to smtp host
      ID: 26218 Updated by: iliaa@php.net Reported By: bzheng at us dot nomura dot com -Status: Open +Status: ...
    4. #26218 [NEW]: mail() sends extra "RCPT TO: <>" to smtp host
      From: bzheng at us dot nomura dot com Operating system: W2k server/IIS 5/PHP in CGI mode PHP version: 4.3.3 PHP Bug Type: ...
    5. "sendmail_from" not set in php.ini or custom "From:" header missing
      Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 14 Message-ID:...
  3. #2

    Default Re: Extra "DataValueFields" in custom DropDownList

    Hi,

    you would if course get them from the property into a string array by
    splitting the given string value (containing "DataValueField2,
    DataValueField3"). Thewn when you need to get the corresponding data, loop
    through the string array and use DataBinder.Eval(dataitem, arrayitem) to get
    the field objecty from data source item (this happens in a loop which
    enumerates the data source)

    --
    Teemu Keiski
    ASP.NET MVP, AspInsider
    Finland, EU
    [url]http://blogs.aspadvice.com/joteke[/url].


    "groovyghoul" <groovyghoul@gmail.com> wrote in message
    news:1165039837.114329.306370@79g2000cws.googlegro ups.com...
    > Hi
    >
    > I am building a custom databound dropdownlist, and I would like to have
    > more than one "DataValueField". I would name them DataValueField2,
    > DataValueField3, etc.
    >
    > I'm having trouble figuring out how I would bind to them.
    >
    > Any help would be appreciated. Thanks.
    >
    > - Richard
    >

    Teemu Keiski 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