Row Updating Dim f File Attachment As File Upload = CType(Me. If you only want to show the File Upload control when a row has entered edit mode, you can add the File Upload ot the Edit Item Template: As you can see in the code above, the Item Tempalte will display an Image control, where the Image Url attribute of the control is bound to a “Image” field (The “Image” in this case is the name of the data source’s column that will contain the path to the image that should be displayed). Regards, Mhaey Please remember to click “Mark as Answer” on the post that helps you.. To the template field you can add both an Item Template, which will be displayed when the row is not in edit mode, and an Edit Item Template, which will be displayed when the row is in edit mode. I'm giving examples, not typing up your whole app for you.
To get the instance of the control you can hook up to the Grid View’s Row Updating event. How can I add a validation control to a textbox control for a grid View and referenece it properly? NET, MCPC# WEB DEVELOPMENT-SQL SERVER DBA"If I have answered your question please mark as answer" Hi,jwaz1999: Here is the totorial you can follow: It's probably just example code, so no getting knickers in a bunch over a typo, OK? If this post contains any code, I may or may not have tested it. If this post contains any code, I may or may not have tested it. This is full test code, using Northwind, showing binding the drop down list and showing that the event Row Editing is actually still looking at the item template, not edit item template. I thought that might be the case when I noticed (breakpoints and tracing) that the Grid View did not yet have an edit row set.
Here in Grid View, in the beginning the major part is to make the decision of putting either a bound field or a template field and the answer is simple: When we want to place any control inside the Grid View then we can go for template field, otherwise bound field will be simpler.