Jan,
Seems your dropdownlist is not plaved in the 5th row (remember in this case
rows are numbered starting from zero). Anyway, you don't have to use
row(index), just try DetailsView1.FindControl("drop1"). If this doesn't work,
try to debug this line of the code and find the control location (ie. by
traversing the control tree within the with Quick View window).
HTH

Signature
Milosz
> Hi,
>
[quoted text clipped - 28 lines]
> Thanks for help
> Jan
Jan - 12 Aug 2007 11:52 GMT
Ji Milosz, thanks for replying.
I tried DetailsView1.FindControl("drop1") but still same error ...
I use VWD (Visual web dev.) and i don't understand what you mean with:"try
to debug this line of the code and find the control location (ie. by
traversing the control tree within the with Quick View window)."
I get the error even in normal mode. Maybe are these lines not correct:
If DataControlRowState.Edit Then
If DataControlRowType.DataRow Then
.....
> Jan,
>
[quoted text clipped - 41 lines]
>> Thanks for help
>> Jan