For example a Sql Data Source, which is automatically added to your Web Form if you drag-n-drop your way around Visual Studio 2005.The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set.All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.Check out what I’m trying to do, maybe you can help?Template Fields, which were the topic of discussion in the Using Template Fields in the Grid View Control and Using Template Fields in the Details View Control tutorials, can consist of multiple templates defining separate interfaces for different row states.The Template Field's to provide a more foolproof user interface.Which means I won’t make my 70% code reduction Microsoft has always promised me.
event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.
Figure 1: The Previous Example Allows Users to Add New Products and Edit Existing Ones (Click to view full-size image) Our goal for this tutorial is to augment the Details View and Grid View to provide validation controls.
In particular, our validation logic will: in action).
To add validation controls to the editing and inserting interfaces, the Bound Fields used by the Details View and Grid View controls need to be converted into Template Fields.
To achieve this, click on the Edit Columns and Edit Fields links in the Grid View and Details View's smart tags, respectively.
I have tried to override On Row Updated in my custom control, but the breakpoint never gets hit.