[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Details View not showing?

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month17 days, 23 hours left to enroll

830 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