Jump to content
Xtreme .Net Talk

Recommended Posts

  • Moderators
Posted

Try this...

 

dim txt as texbox = CType(e.Item.Cells(1).Controls(0), TextBox)

// Cell(1) being the column index

 

or if you used TemplateColumn / EditItemTemplate to place the controls

dim dd as Dropdownlist = CType(e.Item.FindControl("myDropdown"), DropDownList)

 

 

BTW, the above code goes in the UpdateCommand event of the datagrid

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...