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 <><
<aspataGrid 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 -->" 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" />
<asp:BoundColumn HeaderText="username" DataField="username" />
<asp:BoundColumn HeaderText="lbl1" DataField="username" />
<asp:BoundColumn HeaderText="username" DataField="username" />
</columns>
</asp:datagrid>
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 <><
<aspataGrid 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 -->" 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" />
<asp:BoundColumn HeaderText="username" DataField="username" />
<asp:BoundColumn HeaderText="lbl1" DataField="username" />
<asp:BoundColumn HeaderText="username" DataField="username" />
</columns>
</asp:datagrid>