NET 2.0 most of the examples and tutorials deal with setting the Data Source ID, which buys you a lot of automation that you may not even appreciate unless you’ve done this the old fashioned way.
In this example, we’ll go through a fully featured Grid View with editing, deleting, selecting, sorting, and paging functionality that is manually bound and identify the limitations and some of the workarounds. Sql Data Source, Object Data Source, Linq Data Source, etc) specified in a Data Source ID, the Grid View can automate many functions because, through the data source control, the Grid View on its own can perform the following operations: When you manually bind data to a Grid View, the Grid View itself cannot perform these operations, so they must be implemented in your code.
Information regarding the origin and location of the exception can be identified using the exception stack trace below.[Http Exception (0x80004005): The Grid View 'Grid View1' fired event Sorting which wasn't handled.] System.
On Sorting(Grid View Sort Event Args e) 1425467 System.
I have the data grid and I have event handlers for edit and cancel but an odd thing happes: I have to click the Edit link twice for it to work and I need to click the Cancel link twice for it to work (the first postback does call my funcs but does not have any effect on how the grid looks -- I have to click ...