Working with a 2 column Dropdown

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

  1. #1

    Default Working with a 2 column Dropdown

    I know how to fill a dropdown list and use it's selected value as a parameter.
    How can I setup 2 columns, hide one column but use the hidden column (a key)
    as the parameter

    For example:

    Prov, ProvID (hidden column)

    =====
    ..SelectedValue.column()....?






    jonefer Guest

  2. Similar Questions and Discussions

    1. working with dropdown lists
      I appologize for what is probably a very novice question. I am creating dropdown lists for an online store. The purpose of the list is to choose a...
    2. How can i trap the SelectedIndexChanged event on a dropdown within a Datagrids EditItemTemplate column
      I have a datagrid with two edititemtemplate columns that contain dropdownlists, these are 1)lists manufacturers of cars, 2)lists car models for a...
    3. Edit Mode - How do I populate dropdown in edittemplate from dropdown in another column?
      I have a datagrid with 2 columns that I want to interact when I'm in Edit Mode. I've reproduced just the columns I want to interact below. I can...
    4. Can't get to nested dropdown in edititemtemplate column
      I've created a datagrid with 1 edititemtemplate column. When the user clicks edit, it spans the entire width of the datagrid (removing the other...
    5. how to Add different controls(textBox,DropDownList or some ) in the same column,based upon the value in the previous column (Say second Colum which contain dropdown with some values) ?
      I am new to ASP.NET. I am facing problem with datagrid. I will explain prob now. In the datagrid the first column is name in the second...
  3. #2

    Default Re: Working with a 2 column Dropdown

    You can set the DataValueField and DataTextField properties to match the
    properties you want set from the datasource. In this case, the hidden
    parameter is the DataValueField. To get it back from the DropDownList after
    a PostBack you get SelectedValue. It does work like a GridView where you do
    have to hide the key fields to use them as parameters.

    Brennan Stehling
    [url]http://brennan.offwhite.net/blog/[/url]

    "jonefer" <jonefer@discussions.microsoft.com> wrote in message
    news:800788B2-F32F-4AEB-8A0D-5D7843530D0F@microsoft.com...
    >I know how to fill a dropdown list and use it's selected value as a
    >parameter.
    > How can I setup 2 columns, hide one column but use the hidden column (a
    > key)
    > as the parameter
    >
    > For example:
    >
    > Prov, ProvID (hidden column)
    >
    > =====
    > .SelectedValue.column()....?
    >
    >
    >
    >
    >
    >

    msnews 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