Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 8th, 2005, 05:55 PM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default unable to resize the data grid

Hi,

I am into the development of a web application, the UI was initially designed in the WXGA format display on Laptops.

I have optimise the display to 800 X 600 for regular display.

we are using Data Grid ccontrol given my miscrosoft as a part oof System.Web.UI.Controls namespace. I am unable to resize the data grid neither on the design side nor from the HTML code.

please advise asap.

thanking you

regards
sasidhar

thanks,
Sasidhar
__________________
thanks,
Sasidhar
 
Old June 9th, 2005, 08:42 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

How have you attempted to resize it? What does your markup look like for the grid?

-Peter
 
Old June 9th, 2005, 11:35 AM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default

Below is the grid markup

************************************************** ************
<asp:DataGrid id="dgReviewRevokeApprovals" runat="server" Width="873px" PagerStyle-CssClass="PagerStyle"
                            AlternatingItemStyle-CssClass="AlternatingItemStyle" HeaderStyle-CssClass="HeaderStyle" ItemStyle-CssClass="ItemStyle"
                            FooterStyle-CssClass="FooterStyle" ShowFooter="True" AllowPaging="True" PagerStyle-NextPageText="Next"
                            PagerStyle-PrevPageText="Prev" PagerStyle-Mode="NextPrev" AutoGenerateColumns="False" CellPadding="5"
                            HorizontalAlign="Center" Height="416px">
                            <FooterStyle CssClass="FooterStyle"></FooterStyle>
                            <AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
                            <ItemStyle CssClass="ItemStyle"></ItemStyle>
                            <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
                            <Columns>
                                <asp:TemplateColumn HeaderText="Select">
                                    <ItemTemplate>
                                        <asp:checkbox Runat="server" ID="chkSelect"></asp:checkbox>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:ButtonColumn DataTextField="Requisition #" HeaderText="Requisition #" CommandName="ReqNo">
                                    <ItemStyle Width="100px"></ItemStyle>
                                </asp:ButtonColumn>
                                <asp:BoundColumn DataField="Requisition Date" HeaderText="Req. Date">
                                    <ItemStyle Width="90px"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Requested By" HeaderText="Req. By">
                                    <ItemStyle Width="120px"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Class" HeaderText="Class">
                                    <ItemStyle Width="90px"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Category" HeaderText="Category"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Item Name" HeaderText="Item Name"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Qty" HeaderText="Qty"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Appx Amt($)" HeaderText="Appx. Amt">
                                    <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Desired Date of use" HeaderText="Date Needed By">
                                    <ItemStyle Width="100px"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="InStock" HeaderText="Similar Item InStock">
                                    <ItemStyle Width="90px"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="Approve only if the Item in Inventory">
                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    <ItemTemplate>
                                        <asp:checkbox Runat="server" ID="chkApproveonlyIfItemInInventory"></asp:checkbox>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:ButtonColumn DataTextField="Last Approved By" HeaderText="Last Approved By" CommandName="Status">
                                    <ItemStyle Width="130px"></ItemStyle>
                                </asp:ButtonColumn>
                            </Columns>
                            <PagerStyle NextPageText="Next" PrevPageText="Prev" CssClass="PagerStyle"></PagerStyle>
                        </asp:DataGrid>

thanks,
Sasidhar
 
Old June 9th, 2005, 05:31 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

With all those columns and the grid having explicit widths, you'll need to change them all to some extent to get the grid to change. You could try removing all the width attributes and see what happens, then the grid would flex in the browser according to the content.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort data in a data grid? zaheerabbas.sk ASP.NET 1.0 and 1.1 Basics 3 April 10th, 2007 02:37 PM
Export data from data grid to excel pomoc VB.NET 2002/2003 Basics 0 December 16th, 2005 03:11 PM
Export data from data grid to Excel pomoc Visual Basic 2005 Basics 0 December 16th, 2005 02:56 PM
trying to load db data into data grid itsajourney Beginning VB 6 2 June 7th, 2005 12:05 PM
Data Grid nishanizam ASP.NET 1.x and 2.0 Application Design 0 May 27th, 2004 03:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.