TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
natchaya khamkuna
NA
31
23.6k
Gridview data over the DIV
Jan 3 2012 1:49 AM
Hi friend and expert ,
I'm new for ASP.Net anyway will practice .
I need help . I wonder why for my Master page and Default page.
Master page, I already created the style .
I place gridview to Default.cs page and already set the width and height but , the result data is over the div .
I place the code as below.
<asp:Content ID="Content7" ContentPlaceHolderID="Content1" runat="server">
<asp:GridView ID="GridView1" runat="server" Height="145px" Width="354px"
AllowPaging="True" BackColor="LightGoldenrodYellow" BorderColor="Tan"
BorderWidth="1px" CellPadding="2"
DataSourceID="SqlDataSource1" ForeColor="Black" GridLines="None"
BorderStyle="Solid" HorizontalAlign="Left" AllowSorting="True">
<AlternatingRowStyle BackColor="PaleGoldenrod" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
</Columns>
<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
SelectCommand="SELECT [ProductID], [ProductName], [UnitPrice], [QuantityPerUnit] FROM [Alphabetical list of products]">
</asp:SqlDataSource>
</asp:Content>
Help me please..
Natchaya
Reply
Answers (
0
)
Cross tab report
Webservice problem