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: 9/12/2006 11:55:41 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
Liming
Asp.Net User
GridView Adapter Skips Colum Style9/12/2006 11:55:41 AM

0/0

Hi,

In my gridview which has four BondFields. Each field has a css class colA, colB, colC, colD respectively.


  <ItemStyle CssClass="colA" />
  <HeaderStyle CssClass="colA" />

the problem is  these cssClass are skiped. I looked over the adapater source code, in the writeRows method where it loops through the cells, I try to check if the cell already has a css class, if so, write it out, if not, skip it.

                   foreach (TableCell cell in row.Cells)
                    {
                        writer.WriteLine();
                        if (cell.CssClass!= null)
                        {
                            cell.Attributes.Add("class", cell.CssClass);
                        }
                        cell.RenderControl(writer);
                    }

 but it's not working. It simply adds an empty "class=''" to each <td>,  my specified "colA, colB....etc" are not rendered.  what am I doing wrong?

 Also, in case other finds this helpful, I specified a cssClass to my gridView, but the adapter skips it as well, so find where the adapter renders the "summary" attribute and after it, do....

                   writer.WriteAttribute("summary", Control.ToolTip);
                    if (gridView.CssClass != null)
                    {
                        writer.WriteAttribute("class", gridView.CssClass);
                    }

Thanks.


Liming Xu
Jumptree ASP.NET 2.0 Project Management - For the Open Source Community and Effectively Manage Projects/Tasks/Milestones
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
GridView Adapter Skips Colum Style - ASP.NET Forums GridView Adapter Skips Colum Style. Last post 09-12-2006 7:55 AM by Liming. 0 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
GridView Adapater column css style, how to get it? - ASP.NET Forums GridView Adapater column css style, how to get it? ... to check if the cell already has a css class, if so, write it out, if not, skip it. ...
Damo's New World Order[FeedShow RSS reader] The adapter relies on two properties of the GridView to determine the current sort column and direction: SortExpression and SortDirection. ...
oracle.dss.dataView (Oracle Fusion Middleware Java API Reference ... EdgeComponentHandle, Represents a cell in a row header or in a column header. EdgeRangeComponentHandle, Represents a range of cells in a GridView edge ...
Mapping table and column names withe the data adapter To allow you to alter table and column names within a data adapter, ... The code below assumes there is a GridView control on the page called GridView1. ...
Visual Studio Magazine Online | Feature: Generate Web Sites ... It also generates the column set of data-bound server controls for which it has a ControlName Adapter class. This is currently limited to DetailsView, ...
Custom Paging in GridView Control at Me.Thoughts.ToString() Skip to content .... Hey, why are my pager buttons in the first column of the gridView? .... Not using CSS Friendly, just copying in the adapters. ...
GridViewGuy The ReplaceKeywords method appends a style to the searched text and returns ... As, soon as you press the button the GridView "ProductName" column will be ...
Questions For Interview: [DotNetDevelopment] Can this be done ... using Fill method and use da update method of data adapter to add values to table3. .... [DotNetDevelopment] How to change the column name . ...
Technical Issues & Solutions: BizTalk Oracle Adapter / ADO.Net ... I'm using BizTalk 2006 with BizTalk Oracle Adapter to Oracle9i Database. ... XMLType column will be generated as base64binary type in the schema. ...




Search This Site:










asp.net login control with xml membership provider

working with the oncontinuebuttonclick event of the changepassword control

authorization in asp.net

password format

how password expire automatically

createuserwizard

how dangerous is it to set validaterequest=true?

setting up a virtual directory

session lost

how do i know what account my asp.net 2.0 web site is running under?

use form authetication for many web applications under the same root

whats formsauthentication and windowsauthentication

decryting passwords stored in aspnet_membership table

form level authentication

is it possible to add my own attribute in a custom role provider?

login and session username

authentication on virtual directory

unrecognized tag 'deny' in the config file

how to getallroles

login

object guid of the logged in user

provider

login / logout problems

css files in app_theme folder couldn't be visited

the aspnetdb database

sql provider in web site administration tool

logout event is not working properly

customer membership provider problems : attempt to access the method failed

forms authentication can't protect htm files?

login problem

  Privacy | Contact Us
All Times Are GMT