Solved

Details View not showing?

Posted on 2010-08-24
2
432 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
Comment Utility
Hi,

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

Accepted Solution

by:
directxBOB earned 0 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

14 Experts available now in Live!

Get 1:1 Help Now