User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 397,280 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,552 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 357 | Replies: 2
Reply
Join Date: May 2008
Posts: 23
Reputation: fayenot is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
fayenot fayenot is offline Offline
Newbie Poster

FormView and GridView does not appear when i debug

  #1  
Jun 1st, 2008
what could be the possible reason why the gridview and formview doesnt appear when i debug my program.. i connected it to a datasource and have them databound, also already set its visibility property to true...please help..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 23
Reputation: fayenot is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
fayenot fayenot is offline Offline
Newbie Poster

Re: FormView and GridView does not appear when i debug

  #2  
Jun 1st, 2008
 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ClientId"
            CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
            GridLines="None">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString %>" 
            SelectCommand="SELECT * FROM [Client]">
        </asp:SqlDataSource>

here is an example of my code..it is a gridview connected with a datasource..still i does not appear when i debug my application..please i need your help guys..
Reply With Quote  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: FormView and GridView does not appear when i debug

  #3  
Jun 2nd, 2008
Try this:
Give AutoGenerateColumns="True"
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 7:19 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC