Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databinding to a dropdown list in a grid not working
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01170921
Message ID:
01171862
Views:
8
Kevin,

To clarify:

1. I believe we are still having a problem with ONLY the first row being updated via a template dropdownlist in an ASP.net gridview.

2. Regarding databinding, I was referring to the list of items databinding to data drive the dropdownlist.

3. I would still like to know how to evaluate the currently selected value in such a dropdownlist. Most likely this is not easy to determine via the dataset, entity, datarow or business object dataset due to the databinding of a template dropdownlist in a gridview.

4. The last part of this message I responded to in another message since it was not actually one of my questions.

Hopefully I have answered all of you questions so that you can provide the 3 answers.

Thanks, Ted

>>I believe Bill may be having the same problem I am (ASP.net). No matter which row I edit in a GridView, the first row is updated. This is why I was asking about setting the current row of the entity in the RowUpdating(). While you are looking in that area please review the data binding of a template dropdownlist in a Gridview. I was never able to get this to work so I had to hard code the items also until this is resolved. Until then I am learning more by having to code around these surprises.
>>
>>While on the dropdownlist control: What is the best method to evaluated the current value selected is such a dropdownlist from RowUpdating()?
>
>Did you do this in your grid?
>
>To get the dropdownlist's currently selected value to bind, edit the template column's data bindings (by clicking the smart tag on the template column) and in the DataBindings dialog, select the "Custom Binding" option and enter an expression like this:
>
>Bind("NameOfTheColumn")
>
>Best Regards,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform