471,354 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

datagrid cellpadding problem

in datagrid cellpadding is not working. can u suggest what could be the
possible error.

this is my code

<asp:datagrid id="test1" Runat="server" Width="700" Enabled="True"
AutoGenerateColumns="False" Font-Size="8pt" PagerStyle-Wrap="True"
AllowSorting="True"
CellSpacing="2" CellPadding="3" GridLines="Vertical"
ItemStyle-Wrap=True HeaderStyle-Wrap=True
AlternatingItemStyle-Wrap=True>
<AlternatingItemStyle Wrap=True></AlternatingItemStyle>
<ItemStyle Wrap=True></ItemStyle>
<HeaderStyle Height="30px" ForeColor="White"
BackColor="#7D9CCA" HorizontalAlign=Center></HeaderStyle>
<Columns>
<asp:HyperLinkColumn DataTextField="Id" NavigateUrl='url'
Visible=False SortExpression="Id Asc"
HeaderText="Id"></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="field1"
NavigateUrl='url' ItemStyle-Width="140" ItemStyle-Wrap =True
SortExpression="field1 Asc" HeaderText="field1"
ItemStyle-HorizontalAlign=Left></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="Name" NavigateUrl='url'
ItemStyle-Width="140" ItemStyle-Wrap =True SortExpression="Name Asc"
HeaderText="Name"
ItemStyle-HorizontalAlign=Justify></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="Type" NavigateUrl='url'
ItemStyle-Width="70" ItemStyle-Wrap =True SortExpression="Type Asc"
HeaderText="Type" ItemStyle-HorizontalAlign=Left></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="SubType"
NavigateUrl='url' ItemStyle-Width="80" ItemStyle-Wrap =True
SortExpression="SubType Asc" HeaderText="Sub Type"
ItemStyle-HorizontalAlign=Left></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="field2"
NavigateUrl='url' ItemStyle-Width="90" ItemStyle-Wrap =True
Visible=True SortExpression="field2 Asc" HeaderText="field2"
ItemStyle-HorizontalAlign=Left></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="Created"
NavigateUrl='url' ItemStyle-Width="60" SortExpression="Created Asc"
HeaderText="Created"
ItemStyle-HorizontalAlign=Left></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="field3"
NavigateUrl='url' ItemStyle-Width="45" SortExpression="field3 Asc"
HeaderText="field3"
ItemStyle-HorizontalAlign=Center></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="Status"
NavigateUrl='url' ItemStyle-Width="45" SortExpression="Status Asc"
HeaderText="Status"
ItemStyle-HorizontalAlign=Left></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataTextField="OptionId"
NavigateUrl='url' SortExpression="Status Asc" HeaderText="Option"
Visible=false></asp:HyperLinkColumn >
<asp:BoundColumn DataField ="url" Visible=False
</asp:BoundColumn> <asp:BoundColumn DataField ="useParameters" Visible=False</asp:BoundColumn>

<asp:TemplateColumn>
<ItemTemplate>
<input type=checkbox ID="chkbox2" checked='<%#
DataBinder.Eval(Container.DataItem,"flag")%>' value='<%#
DataBinder.Eval(Container.DataItem,"Id")%>' Runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle Visible="False"
Mode="NumericPages"></PagerStyle>
</asp:datagrid>

Jan 31 '06 #1
0 1849

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Reb | last post: by
1 post views Thread by Mikkel Olsen | last post: by
4 posts views Thread by tshad | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.