.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 2nd, 2003, 07:42 PM
alina alina is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 8 alina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Set the style of the datagrid

I have the following problem:<br><br> I have a datagrid, which gets the data from a datatable.<br><br> I attached a CSSClass to the datagrid, but I don't know how can I make the header have a particular style.<br> I saw the generated code by "View source" and it looks something like that<br><br><br> <div class="msgQuoteWrap"><div class="msgCode"><table><br> <tr class="someClass"><br> <td> Name </td><br> </tr> <tr><br> <td> John Doe </td><br> </tr><br> </table></div></div><br><br><br> Name is the name of the column, so I expected it to be between "th", "/th" tags, rather than between "td", "/td" tags, so I don't know how to specify that it shoud use a different CSSClass than the regular records in the table.<br><br> If you know how this can be done, please respond.<br><br> Alina

Reply With Quote
  #2  
Old July 5th, 2003, 03:38 AM
Andrew Andrew is offline
dotNetBB Forums Developer
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 265 Andrew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Andrew Send a message via AIM to Andrew Send a message via Yahoo to Andrew
Instead of the CSSClass which applies to all of the datagrid, use the HeaderStyle value.

Reply With Quote
  #3  
Old July 20th, 2003, 05:55 AM
faraz faraz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: pakistan
Posts: 2 faraz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
data grid view style

well u can have detail discussion about ur problem in
professional ASP.net (Wrox )
page 305 Adding Style and templates with data grid controls

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Set the style of the datagrid


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT