Wednesday, August 13, 2008

Viewing the details

Frustrations I came about using DetailsView for that are obvious but can be overlooked.

For custom Next/Previous/First/Last buttons:
CommandName="Page" CommandArgument="..."
[Command arguments paramters]
Yes the buttons need to be in a template of the DetailsView control, they cannot be outside. Make sure they aren't outside if they aren't working....grrrr.

To access an item in the Pager template:

In the aspx page, set the DataKeyNames to allow SQL Statements to be updated/deleted.


No comments: