DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    8

    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>

  2. #2
    Join Date
    May 2006
    Posts
    64
    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/
    Attached Images
    Last edited by postmaster; 05-16-2006 at 12:10 PM.

Similar Threads

  1. Replies: 1
    Last Post: 02-05-2003, 12:08 PM
  2. Input string was not in a correct format
    By mdengler in forum ASP.NET
    Replies: 0
    Last Post: 11-26-2002, 02:32 PM
  3. Primary Key Indexes
    By Don G in forum VB Classic
    Replies: 4
    Last Post: 04-12-2001, 05:19 PM
  4. Replies: 0
    Last Post: 10-04-2000, 03:45 PM
  5. Replies: 5
    Last Post: 03-22-2000, 12:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links