Results 1 to 2 of 2

Thread: Format a datagrid??

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Smile Format a datagrid??

    There seems to be no TableStyles object in the properties pane for a datagrid (Web) so how do I format the header, contents e.t.c.

    Do I have to do it in code?

    Does anyone have any ideas how to go about this?

    Thanks in Advance

    Parksie

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    If you have the VS.Net editor, you can use the property builder in the right click menu to build up the format of items in the grid. Here is an example of the code, if you do not have the editor:

    Code:
    		<form id="Form1" method="post" runat="server">
    			<asp: DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 109px; POSITION: absolute; TOP: 88px" runat="server" Width="396px" Height="136px">
    				<ItemStyle ForeColor="Black" BackColor="Silver"></ItemStyle>
    				<HeaderStyle Font-Size="Small" Font-Underline="True" Font-Names="Tahoma" Font-Bold="True" HorizontalAlign="Center" ForeColor="Black" VerticalAlign="Middle" BackColor="LightGreen"></HeaderStyle>
    			</asp: DataGrid>
    		</form>
    Hope this helps,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width