UpdateCommand

  • Thread starter André Almeida Maldonado
  • Start date
A

André Almeida Maldonado

Hy all...

I'm trying to get the selectedvalue of a dropdownlist that is in a datagrid
edititem...

But, in this line:

Dim drpPediGrPr As System.Web.UI.webcontrols.DropDownList =
CType(e.Item.Cells(1).Controls(0), System.Web.UI.webcontrols.DropDownList)

I receive this error:
Specified conversion is not valid.

Why??
 
K

Kevin Spencer

Apparently, e.Item.Cells(1).Controls(0) is NOT a DropDownList.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,832
Latest member
UtaHetrick

Latest Threads

Top