Yes, and one interesting note about adding scrollbars to panels - if you add a
"Overflow:AUTO" attribute in the style of the panels DIV tag (in the HTML), the Panel
adds a scrollbar when the contents cross it's boders.
Raj.
Parvez <[EMAIL PROTECTED]> wrote:
hi sean
I think u can control the width of datagrid by using a <asp:panel>.
so use panel and take datagrid inside the panel then u can set the width of panel for
datagrid.
<asp:panel id = "pnl" runat="server" height="200px" width = "300px" />
try it...
parvez
----- Original Message -----
From: sean12302000
To: [EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 16:38
Subject: [AspNetAnyQuestionIsOk] changing size of a datagrid in edit mode?
Hi There,
I have a datagrid that holds quite a few columns and in edit mode it
spreads out to at least double the page, is there anyway to limit the
size as I have tried to modify the width property of the datagrid
itself?
Sean - thanks in advance for your answer
<form runat="server">
<asp:DataGrid runat="server" id="dgModifyListing"
AutoGenerateColumns="False" CellPadding="2"
width=85%
HeaderStyle-BackColor="purple"
HeaderStyle-ForeColor="White"
HeaderStyle-HorizontalAlign="Center"
HeaderStyle-Font-Bold="True"
AllowPaging="True"
OnPageIndexChanged="NewPage"
OnCancelCommand="dgModifyListing_Cancel"
OnEditCommand="dgModifyListing_Edit"
OnUpdateCommand="dgModifyListing_Update">
<AlternatingItemStyle BackColor="White" />
<PagerStyle NextPageText="Next -->" PrevPageText="<--
Prev."
HorizontalAlign="Right" />
<columns>
<asp:EditCommandColumn EditText="Edit Info"
ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" />
<asp:BoundColumn HeaderText="Listing" DataField="listingID"
readonly=true visible=false />
<asp:BoundColumn HeaderText="Equipment Type"
DataField="formname" />
<asp:BoundColumn HeaderText="Manufacturer"
DataField="manufacturer" />
<asp:BoundColumn HeaderText="Model"
DataField="model" />
<asp:BoundColumn HeaderText="Description"
DataField="descri" />
<asp:BoundColumn HeaderText="Quantity"
DataField="quantity" />
<asp:BoundColumn HeaderText="Price"
DataField="listprice" />
<asp:BoundColumn HeaderText="Comments"
DataField="comments" />
<asp:BoundColumn HeaderText="Location"
DataField="location" />
</columns>
</asp:datagrid>
</form>
Yahoo! Groups Sponsor
ADVERTISEMENT
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/