-
set pushButton width
Is there a way to set a standard width on pushButtons, as well as fore(font) color, etc in vb?
<asp:dataGrid id="dg" runage="server'>
<columns>
<asp:ButtonColumn CommandName="ID" runat=server DataTextfield="downloadText" buttonType="pushButton" ><itemstyle width="300px" /></asp:ButtonColumn>
<columns>
</asp:datagrid>
-
How about using TemplateColumn
<asp:dataGrid id="DataGrid2" runat="server" AutoGenerateColumns="False" Width="368px" CellPadding="3"
BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#CCCCCC">
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="ID"></asp:BoundColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
<asp:ButtonColumn Text="Delete" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
<asp:TemplateColumn HeaderText="Del">
<ItemTemplate>
<asp:Button id="btnDel" runat="server" Width="162px" Text="Del" ForeColor="Red" Font-Bold="True"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:dataGrid></P>
===========================
See image link below
http://www.programmingknowledge.com/
Last edited by postmaster; 05-16-2006 at 12:10 PM.
Similar Threads
-
Replies: 1
Last Post: 02-05-2003, 12:08 PM
-
By mdengler in forum ASP.NET
Replies: 0
Last Post: 11-26-2002, 02:32 PM
-
By Don G in forum VB Classic
Replies: 4
Last Post: 04-12-2001, 05:19 PM
-
By Richard Fremmerlid in forum Enterprise
Replies: 0
Last Post: 10-04-2000, 03:45 PM
-
By Ed Pinto in forum VB Classic
Replies: 5
Last Post: 03-22-2000, 12:52 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks