Paging not showing up in detailsview

L

lewisawong

hi:

I have a form which has a gridview and detailsview. In design mode in
VS 2005, paging (1 2) shows in detailsview, but when run, it does not
show at all. Can anyone help? Thanks

Code:

<asp:DetailsView AutoGenerateRows="False" DataKeyNames="servers"
DataSourceID="SqlDataSource3"
HeaderText="Server Details"
ID="DetailsView1"
runat="server"
Width="700px"
OnItemUpdated="DetailsView1_ItemUpdated"
OnItemInserted="DetailsView1_ItemInserted"
OnDataBound="DetailsView1_DataBound"
BackColor="White"
BorderColor="White"
BorderStyle="Ridge"
BorderWidth="2px"
CellPadding="3"
GridLines="None"
AllowPaging="True"
CellSpacing="1">
 
P

PeterKellner

I'm guessing you don't have the detailsview tied to the gridview. That is,
you need to have a get method on the detailsview that selects data probably
from the primary key of the gridview. That is, use the configure
detailsview connection and have the get method (in select tab) associate
with the control gridview1. That way, it will retrieve from the record in
gridview1 associated with what ever is in the gridview1's datakeynames=[..]
first parameter.

Make sense?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top