473,809 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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"
AutoGenerateCol umns="False" Font-Size="8pt" PagerStyle-Wrap="True"
AllowSorting="T rue"
CellSpacing="2" CellPadding="3" GridLines="Vert ical"
ItemStyle-Wrap=True HeaderStyle-Wrap=True
AlternatingItem Style-Wrap=True>
<AlternatingIte mStyle Wrap=True></AlternatingItem Style>
<ItemStyle Wrap=True></ItemStyle>
<HeaderStyle Height="30px" ForeColor="Whit e"
BackColor="#7D9 CCA" HorizontalAlign =Center></HeaderStyle>
<Columns>
<asp:HyperLinkC olumn DataTextField=" Id" NavigateUrl='ur l'
Visible=False SortExpression= "Id Asc"
HeaderText="Id" ></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" field1"
NavigateUrl='ur l' ItemStyle-Width="140" ItemStyle-Wrap =True
SortExpression= "field1 Asc" HeaderText="fie ld1"
ItemStyle-HorizontalAlign =Left></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" Name" NavigateUrl='ur l'
ItemStyle-Width="140" ItemStyle-Wrap =True SortExpression= "Name Asc"
HeaderText="Nam e"
ItemStyle-HorizontalAlign =Justify></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" Type" NavigateUrl='ur l'
ItemStyle-Width="70" ItemStyle-Wrap =True SortExpression= "Type Asc"
HeaderText="Typ e" ItemStyle-HorizontalAlign =Left></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" SubType"
NavigateUrl='ur l' ItemStyle-Width="80" ItemStyle-Wrap =True
SortExpression= "SubType Asc" HeaderText="Sub Type"
ItemStyle-HorizontalAlign =Left></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" field2"
NavigateUrl='ur l' ItemStyle-Width="90" ItemStyle-Wrap =True
Visible=True SortExpression= "field2 Asc" HeaderText="fie ld2"
ItemStyle-HorizontalAlign =Left></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" Created"
NavigateUrl='ur l' ItemStyle-Width="60" SortExpression= "Created Asc"
HeaderText="Cre ated"
ItemStyle-HorizontalAlign =Left></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" field3"
NavigateUrl='ur l' ItemStyle-Width="45" SortExpression= "field3 Asc"
HeaderText="fie ld3"
ItemStyle-HorizontalAlign =Center></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" Status"
NavigateUrl='ur l' ItemStyle-Width="45" SortExpression= "Status Asc"
HeaderText="Sta tus"
ItemStyle-HorizontalAlign =Left></asp:HyperLinkCo lumn>
<asp:HyperLinkC olumn DataTextField=" OptionId"
NavigateUrl='ur l' SortExpression= "Status Asc" HeaderText="Opt ion"
Visible=false></asp:HyperLinkCo lumn >
<asp:BoundColum n DataField ="url" Visible=False
</asp:BoundColumn > <asp:BoundColum n DataField ="useParameters " Visible=False</asp:BoundColumn >

<asp:TemplateCo lumn>
<ItemTemplate >
<input type=checkbox ID="chkbox2" checked='<%#
DataBinder.Eval (Container.Data Item,"flag")%>' value='<%#
DataBinder.Eval (Container.Data Item,"Id")%>' Runat="server" />
</ItemTemplate>
</asp:TemplateCol umn>
</Columns>
<PagerStyle Visible="False"
Mode="NumericPa ges"></PagerStyle>
</asp:datagrid>

Jan 31 '06 #1
0 1931

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2110
by: Reb | last post by:
I am using a datagrid within another datagrid. My second datagrid is expand/collapse one. I am facing some error. This is my code. ExpandGrid.aspx <form id="Form1" method="post" runat="server"> <asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
1
3144
by: Mikkel Olsen | last post by:
Hi. I have a problem regarding to the DataGrid_ItemDataBound event. I cant run this event when my datagrid is inside a DataList. The ItemDataBound for DataList1 is working well, but it never raises the DataGrid1_ItemDataBound event. Thx.
4
1532
by: News | last post by:
I have a page with many controls. Among these controls there is a table which is a datagrid with nested repeater inside. My problem is that I can not use DataGridCommandEventArgs to get datagrid elements because submit button is not in datagrid and uses onClick event btnSaveServicePlanUpdate. Here is the code: Sub btnSaveServicePlanUpdate_OnClick(sender As Object, e As EventArgs) ' need to get the key value serviceplanprogram_id and...
5
4024
by: David Freeman | last post by:
Hi There! I'm using ASP.NET 1.1 and VB. Below is my DataGrid declaration... <asp:DataGrid id="myDataGrid" runat="server" AutoGenerateColumns="false"
4
3500
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a snippet from my .css file: *************************** body { margin:0; padding:0;
5
2797
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go to the database to get the next page. Is there a way to use the dataset to allow us to read back and forth in it instead of going back to the database to get it? Thanks,
2
10408
by: Charleees | last post by:
Hi all, I have a DataGrid with Template Columns..... There are LAbels,Linkbuttons in the Single Row.. I have to set the Constant Column width for those Template Columns in Grid... Wat actually happens is... when the Text size is too big... the column
2
3445
by: Mike Baugh | last post by:
I am using visual studio 2005 to develop a form using c# I have 3 datagrids on one form. I can set the row color based on a certain value in a column. However this color applies to all 3 datagrida. I would like to set it so that if value of column 3 in datagrid 1 is < 100 set to red, if = 100 set to green if value of column 3 in datagrid 2 is < 90 set to red, if >= 90 set to green if value of column 3 in datagrid 3is < 80 set to red,...
0
2094
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any help........pls urgent ========================================================= <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm3.aspx.vb" Inherits="TestDatagrids.WebForm3"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">...
0
9602
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10639
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.