CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 11/13/2007 3:52:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
shapper
Asp.Net User
GridView Bug11/13/2007 3:52:51 PM

0/0

Hello,

I created a GridView with the class "PrettyGridView":

  Private Sub gvTags_Init(ByVal sender As Object, ByVal e As EventArgs) Handles gvTags.Init
    With gvTags
      .AllowPaging = True
      .AllowSorting = True
      .AutoGenerateColumns = True
      .CssClass = "PrettyGridView"
      .DataKeyNames = New String() {"TagId"}
      .DataSource = ldsTags
      .ID = "gvTags"
      .ShowFooter = True
      .ShowHeader = True
    End With
  End Sub ' gvTags_Init 

I am using the CSS Friendly Adapters from CodePlex.

I get the following rendered code:

<div class="AspNet-GridView" id="gvTags">
<table summary="" class="PrettyGridView" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col">
 
</th>
<th scope="col">
 
</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
 
</td>
<td>
 
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
Tag 01
</td>

This seems wrong!

Why is my CSSClass PrettyGridView applied to the table instead of being applied to a DIV, as in:

http://www.asp.net/CSSAdapters/GridView.aspx 

I am using the following CSS Class which is not working:

.PrettyGridView .AspNet-GridView
{
    color: #606060;
    font: normal 0.7em verdana,arial,helvetica,sans-serif;   
    width: 100%;
}

Could someone please help me out? 

Thanks,

Miguel 

 

 

 

bdemarzo
Asp.Net User
Re: GridView Bug11/15/2007 2:02:41 PM

0/0

It's not wrong, it's by design.

Consider: the out-of-the-box control adds your CSS class to the TABLE element. The CSS adapter, therefore, does the same.


- brian
- blog: www.sidesofmarch.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Pro VB 2005 and the .Net 2.0 Platform Authors: Andrew Troelsen, Pages: 1034, Published: 2006
Professional IIS 7 and ASP.NET Integrated Programming Authors: Shahram Khosravi, Pages: 670, Published: 2007
Foundations of Atlas: Rapid Ajax Development with ASP.NET 2.0 Authors: Laurence Moroney, Pages: 314, Published: 2006

Web:
Gridview Bug? Gridview Bug? Here's an odd one. If I have a gridview that only has one row in it, and there is a button on the row (be it a buttoncolumn or ...
DotNetSlackers: Extend the GridView bug Extend the GridView bug. Posted by: Fredrik Norméns Blog, on 30 May 2006 | View original. Hi everyone it was a while ago since I wrote a post. ...
.NET ASP.NET Gridview Bug? Gridview Bug? - Tim Payne. 04-Jun-08 12:04:19. Here's an odd one. If I have a gridview that only has one row in it, and there is a button on ...
MSDN Visual Basic Language gridview bug gridview bug. Hello,. I am not sitting in front of the actual code right now for fear of smashing my monitor.. Here is my issue/setup. ...
[2.2] GridView bug - Ext JS Forums [2.2] GridView bug Ext: Bugs. ... Sniffer, please update your title, it's not a selmodel bug, but a gridview bug. ...
Another GridView Bug -> PagerSettings.Visible - .NET ASP Another GridView Bug -> PagerSettings.Visible. Get answers to your questions in our .NET ASP forum.
Detailsview and gridview bug? - ASP.NET Forums It seems like I might have discovered one bug. In my page I have two gridviews. The first gridview has a detailsview connected to it. ...
WebControl.GridView bug? : gridview I'm trying to retrieve a value I placed in a grid view column that is set to NOT visible: gv_Units is the GridView control Dim gvRow As GridViewRow For Each ...
GridView - Bugs: bug #40605, The Detail Results of SAM ATLAS ... Aug 26, 2008 ... It seems this bug affect all the SAM ATLAS tests in GridView. ... I is better if you post gridview bug in category "gridview" instead of ...
ASP.NET 2.0 GridView Bug? DataFormatString doesn't work Talk about ASP.NET 2.0 GridView Bug? DataFormatString doesn't work.




Search This Site:










menu shows up perfectly in ie7 but not at all in ie6

css friendly adapters + createuserwizard + custom membership provider = trouble?

can you set the css adapters to that each <li> node displays a unique id?

set adapter by code

detailsview not appearing during debug

microsoft oks community development of these adapters

css menu friendly adapter and target = blank

browser target support

problems with registration control

cleint-side support

adapters by default?

horizontal menu 1st tier text overlapping 3rd tier menu items

wizard control and css adapters

css friendly control adapter for checkbox list

experimental treeview adapter version: with postback and node selection

what should i do?

asp:detailsview renders incorrectly with css friendly control adapter

cssfriendlyadapters treeview resolution issue

menu not rendering correctly

asp.net menu control - on hover makes page content disappear (ie 6)

css class problem for browsers

css treeview nested li question

how to override styles dynamically in treeview control

problem centering menu control using adpaters

set the css-friendly menu properties programmatically

treeview and selectednodechanged

treeview style help

css and sitemap

stylesheet question

menuadapter - modify builditem method

  Privacy | Contact Us
All Times Are GMT