Solved

Details View not showing?

Posted on 2010-08-24
2
433 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Registering DLL 5 43
How can I build my own IDE using ASP.NET MVC? 2 33
Allow space in this pattern 2 48
Host asp.net pages 5 25
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now