Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Server-Side DataGrid Manipulation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pbd22 - 10 Mar 2008 14:47 GMT
Can somebody tell me how I add classes to the <td> tags in my datagrid
server-side?
I seem to be able to get my custom classes to the <tr> tags from
within the grid's "ItemStyle"
tags by the <td> tags, or columns, remain allusive. What is the
appropriate code for styling
my columns for, say, this.MyDataGrid. And, if you are really good, how
do I style various <td>
elements with various class directives such that:

<tr>
<td class="tdOdd left"><img src="img/table_teaser.jpg" alt="teaser"
class="teaserImage" />
<h3>VTV goes behind the scenes</h3>
<p>Today we launch the Security-Awareness and online ...</p>
</td>
<td class="tdEven left">
<p>Monday 12.02.2008</p>
<p>11:30 - 12:00 (<a href="#">UK</a>)</p>
</td>
<td class="tdOdd left">
<p>Live webinar</p>
</td>
<td class="tdEven left">
<p>Active</p>
<p>20 viewers</p>
<p><a href="#">Register</a></p>
</td>
<td class="tdOdd2 left">
<p>Mark Lipp</p>
</td>
</tr>

I would really apprecaite some help.

Thanks.
pbd22 - 10 Mar 2008 18:17 GMT
Trying a repost to an ASP.NET forum.
thanks,

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.