Wednesday, August 13, 2008

Viewing the details

Frustrations I came about using DetailsView for asp.net 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:
DetailsView1.BottomPagerRow.FindControl("...")

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



Cheers,

No comments: