PC Review


Reply
Thread Tools Rate Thread

Difficulties with custom datagrid

 
 
pbd22
Guest
Posts: n/a
 
      9th Mar 2008
Hi.

I need to style the rows in my datagrid such that:

<tr>
<td class="tdEven left"><img src="img/table_teaser.jpg" alt="teaser"
class="teaserImage">
<a href="#','mypopup','1024','768','center','front');">Italy - A
lovely place</a>
<p>Since the old Rome, Italy and its habitants are always a
reliable ...</p>
</td>
<td class="tdEven left">
<p>Friday 08.02.2008</p>
<p>10:00 - 11:00 (<a href="#">UK</a>)</p>
</td>
<td class="tdEven left">
<p>Live webinar</p>
</td>
<td class="tdEven left">
<p>Upcoming</p>
<p>4 viewers</p>
<p><a href="#">Register</a></p>
</td>
<td class="tdEven left">
<p>Claudio Marcobello</p>
</td>
</tr>
<tr>
<td colspan="6" class="divider">&nbsp;</td>
</tr>

I am having a hard time figuring out how to add my custom classes to
the correct <td> elements.
How is this done? How do i do it for alternating TDs? And, finally,
how do I add the final divider
class?

I am doing everything from the server. I am using a stored procedure
to produce data and then am binding it according to the column name
created in the sproc. My datagrid looks like this:

<form id="Form1" runat="server">

<aspataGrid
runat="server" id="MyDataGrid"

AutoGenerateColumns="True"
width="750"
PageSize="10"
AllowPaging="True"

OnPageIndexChanged="MyDataGrid_Paging"

AllowCustomPaging="True">
<HeaderStyle
CssClass="tdHead left" />

<AlternatingItemStyle />
</aspataGrid>
</form>

Could somebody tell me how to achieve the posted HTML in my
datagrid????

Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Control difficulties and no VB examples found. pmclinn Microsoft ASP .NET 0 14th Apr 2008 05:36 AM
Custom Datagrid problem with a custom property scamp Microsoft Dot NET 0 8th Jun 2005 03:59 PM
Custom Datagrid RedRed Microsoft ASP .NET 1 9th Mar 2005 01:51 AM
Custom datagrid Ryu Microsoft Dot NET Framework Forms 1 19th Oct 2004 03:46 PM
custom datagrid Saso Zagoranski Microsoft C# .NET 1 26th Oct 2003 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:11 PM.