datagrid blows out page width when in edit mode

  • Thread starter Thread starter Moe Sizlak
  • Start date Start date
M

Moe Sizlak

Hi There,

I wanted to know if I alter the width of a datagrid when in edit mode? I
have a datagrid which has a lot of columns and I waas wondering if I can
make it smaller so that it fits into the page?

cheers

Moe <><


<asp:DataGrid runat="server" id="dgModifyListing"
AutoGenerateColumns="False" CellPadding="2" width=8%
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 --&gt;" PrevPageText="&lt;-- 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" />
<asp:BoundColumn HeaderText="username" DataField="username" />

<asp:BoundColumn HeaderText="lbl1" DataField="username" />
<asp:BoundColumn HeaderText="username" DataField="username" />

</columns>
</asp:datagrid>
 
Hi Moe,

Did you know that there are newsgroups

microsoft.public.dotnet.framework.aspnet
and
microsoft.public.dotnet.framework.aspnet.datagridcontrol.

Probably there is someone who can answer you on your questions without even
to think.

Cor
 
Back
Top