Results 1 to 2 of 2

Thread: Datagrid: Changing a dropdown's content after another was selected

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Posts
    31

    Exclamation Datagrid: Changing a dropdown's content after another was selected

    Well, I've got my datagrid running great!

    I just have one last puzzle to solve and it will be all good.

    I have two dropdownlistboxes on my grid. One is a field code(100,101,102,etc.) and the other is the field name. Based on the field code, there can be many different field names tied to a field code. Therefore, my question is: when you select a different field code in the dropdownlistbox, how can you make the other field dropdownlistbox fill in with the appropriate values???

    Basically, the grid is in edit mode and I can turn on the autopostback feature for the field dropdownlistbox. However, I don't know what to do to populate the field dropdownlistbox based on the newly selected field code.

    Any help would be appreciated!

    Patrick

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    In the OnSelectedIndexChanged event handler for the first drop down, add some logic to determine the contents for the second drop down.

Posting Permissions

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



Click Here to Expand Forum to Full Width