Solved

Details View not showing?

Posted on 2010-08-24
2
436 Views
Last Modified: 2012-05-10
I have the below Details view. In my codebehind I call:

DetailsView.Databind()

Which does kick off the SQLDatasource Selecting (which has the correct parameters) and the Selected Event which returns a single row.

Yet my Details view is not visible. Any ideas what I am doing wrong?
<asp:DetailsView ID="DetailsView1" runat="server" CssClass="extjs-theme" DataSourceID="SqlDataSource3"
    HeaderText="Details" Width="400px" AutoGenerateRows="false" DataKeyNames="DetailsID"
    Visible="true">
    <RowStyle CssClass="data-row" />
    <AlternatingRowStyle CssClass="alt-data-row" />
    <HeaderStyle CssClass="header-row" />
    <Fields>
	<asp:BoundField DataField="Day" HeaderText="Day" SortExpression="Day" />
	<asp:BoundField DataField="Client" HeaderText="Client" SortExpression="Client" />
	<asp:BoundField DataField="Position" HeaderText="Position" SortExpression="Position" />
	<asp:CommandField ShowEditButton="True" />
    </Fields>
</asp:DetailsView>

Open in new window

0
Comment
Question by:directxBOB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Expert Comment

by:Fareed Ali Khan
ID: 33518440
Hi,

Why you have AutoGenerateRows = false? set it true.
0
 

Accepted Solution

by:
directxBOB earned 0 total points
ID: 33530900
I am using Boundfields, so AutoGenerateRows can be set to false.

The problem relates to the Ajax Update Panel, once I surrounded the DetailsView in an update panel.

Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question