Setting CSSClass for Datagrid header's for sortable fields

Discussion in 'ASP .Net' started by =?Utf-8?B?RGlmZmlkZW50?=, Dec 22, 2004.

  1. Hello All,

    I would like to set css class for datagrid's sortable columns. I cannot do
    it in the datagrid's header's CSSClass.

    Datagrid's sortable column headings are generated as <a> tags for which I
    would like to have a css class. How can I accomplish?

    Thanks
    =?Utf-8?B?RGlmZmlkZW50?=, Dec 22, 2004
    #1
    1. Advertising

  2. Hi.
    Try using
    HeaderStyle-CssClass="UrCSSName"
    in your DataGrid!
    Hope it helps

    Patrick

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Patrick Olurotimi Ige, Dec 22, 2004
    #2
    1. Advertising

  3. In addition to headerstyle-cssclass=MyHeaderStyle, you might also need to set
    a style for the <a> tags, depending on whether you've already styled these at
    a higher level. E.g. A.MyHeaderStyle {color:red;} etc.

    Bill

    "Diffident" wrote:

    > Hello All,
    >
    > I would like to set css class for datagrid's sortable columns. I cannot do
    > it in the datagrid's header's CSSClass.
    >
    > Datagrid's sortable column headings are generated as <a> tags for which I
    > would like to have a css class. How can I accomplish?
    >
    > Thanks
    >
    >
    >
    =?Utf-8?B?QmlsbCBCb3Jn?=, Dec 23, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    2,440
  2. =?Utf-8?B?VFBoZWxwcw==?=

    Sortable/pagable datagrid with hyperlink column

    =?Utf-8?B?VFBoZWxwcw==?=, Dec 29, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    4,711
    Steven Cheng[MSFT]
    Jan 3, 2006
  3. jack58

    Sortable datagrid

    jack58, Jun 29, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    335
    jack58
    Jun 30, 2006
  4. Nathan Baulch

    Setting CssClass of sorted header <a> tags...

    Nathan Baulch, Jul 29, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    144
    Jeff Jorczak
    Aug 25, 2003
  5. Teej
    Replies:
    2
    Views:
    290
Loading...

Share This Page