TheWizardofInt Posted March 28, 2004 Posted March 28, 2004 I need two edit columns in the datagrid How do I determine which has been clicked in the code behind section? Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
Moderators Robby Posted March 28, 2004 Moderators Posted March 28, 2004 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 Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.