Message
General information
Fórum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
ID da thread:
01170921
ID da mensagem:
01171862
Views:
10
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
Responder
Mapa
View