Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Details View not showing?

Posted on 2010-08-24
2
Medium Priority
?
439 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

721 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