Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys, In my application , one master page with different child pages, here fix the master page header width and height . But the main problem , in child pages different gridviews with number of columns .when we can run the application child pages data exceeds the master page.
could you help any one please..
Posted
Updated 24-Jul-12 19:18pm
v2

1 solution

you can either used weight and weight property as auto or you an css property overflow:auto;
to over come this problem
i hope your problem will solve if not please comment
 
Share this answer
 
Comments
CH Guravaiah 25-Jul-12 1:40am    
in Griview setting the property is Style="overflow:auto". it does not work and there is no weight property.
rizwan muhammed khan gouri 25-Jul-12 2:02am    
TOW METHOD YOU CAN USED -
1. <DIV STYLE="OVERFLOW:AUTO;"><asp:gridview></DIV>
2. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-BorderColor="Aqua" EmptyDataText="nO rECORD fOUND" Height="" Width="">
<alternatingrowstyle backcolor="White">
<columns>
CH Guravaiah 25-Jul-12 2:07am    
thanks , but based on client requirement , we doesn't apply the scroll bars . these concept already applied. but client reject that. is there any other solution.

This is my griview :
<div id="dvGridWidth" style="width: 745px; padding: 0 0 17px 0; overflow-x: auto; overflow-y: hidden">



<asp:GridView ID="gvwLeaseReviewSummary" runat="server" AllowSorting="true" AutoGenerateColumns="False"

AllowPaging="true" CellPadding="4" DataKeyNames="leaseID,leaseVersionID,leasePaymentID,reportLeaseListDetailID"

EmptyDataText='<%#configurationManager.appSettings("EmptyGridMessage") %>' ForeColor="#333333"

HeaderStyle-Font-Bold="true" ShowFooter="False" Width="100%" PageSize="5">

<emptydatarowstyle backcolor="White" borderwidth="0px">

<PagerSettings Position="TopAndBottom" />

<rowstyle backcolor="White" forecolor="Black">

<columns>

<asp:TemplateField Visible="false">

<itemtemplate>

<asp:Label ID="lblAutoIncrement" runat="server" Text='<%#Eval("rowNum") %>' Visible="false">



<HeaderStyle HorizontalAlign="Center" BackColor="Silver"></HeaderStyle>

<itemstyle wrap="False">



<asp:TemplateField HeaderStyle-BackColor="Silver" HeaderStyle-HorizontalAlign="Center"

ItemStyle-Wrap="false">

<HeaderTemplate>

<asp:LinkButton ID="lbnLeaseNumber" runat="server" SkinID="MS-GridFontStyleBlack"

Text="Lease Number" CommandArgument="Stateleasenumber" CommandName="Sort">

</HeaderTemplate>

<itemtemplate>

<asp:Label ID="lblLeaseNumber" runat="server" Text='<%#Eval("Stateleasenumber") %>'

ToolTip='<%#Eval("Stateleasenumber") %>' SkinID="MS">



<HeaderStyle BackColor="Silver" HorizontalAlign="Center" />

<itemstyle wrap="False">



<asp:TemplateField HeaderStyle-BackColor="Silver" HeaderStyle-HorizontalAlign="Center"

ItemStyle-Wrap="false">

<HeaderTemplate>

<asp:LinkButton ID="lbnSTR" runat="server" SkinID="MS-GridFontStyleBlack" Text="STR"

CommandArgument="LeaseSTR" CommandName="Sort">



</HeaderTemplate>

<itemtemplate>

<asp:Label ID="lblSTR" runat="server" Text='<%#Eval("LeaseSTR") %>' ToolTip='<%#Eval("LeaseSTR") %>'

SkinID="MS">



<HeaderStyle BackColor="Silver" HorizontalAlign="Center" />

<itemstyle horizontalalign="Left">



<asp:TemplateField HeaderStyle-BackColor="Silver" HeaderStyle-HorizontalAlign="Center">

<HeaderTemplate>

&
rizwan muhammed khan gouri 25-Jul-12 2:13am    
WHEN YOUR CONTENTPLACEHOLDER IN MASTER PAGE WIDTH AND HEIGHT IS LOWER THAN YOUR NEED THAN YOU CAN NOT USED ANY OTHER PROPERTY BECAUSE IT WILL DISTROYED YOUR DESIGN .SO IF PROBELM COME MY SUGGESTION IS YOU CAN SHOW YOUR DRIDVIEW IN POPUP BOX IT WILL LOOK ATRACTIVE AND WE CAN DISPLAY ALL DATA.
CH Guravaiah 25-Jul-12 2:30am    
ok, it's fine. we don't exceeds for client requirement. that's why asking again and again . please don't understand negative way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900