Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. DataGrid, simple problem... but...

DataGrid, simple problem... but...

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fadee
    wrote on last edited by
    #1

    How can I use an image as background image for header of a datagrid? Stuck!!!!!! eff_kay ------------------- Therez No Place like ... 127.0.0.1

    M 1 Reply Last reply
    0
    • F fadee

      How can I use an image as background image for header of a datagrid? Stuck!!!!!! eff_kay ------------------- Therez No Place like ... 127.0.0.1

      M Offline
      M Offline
      Marcie Jones
      wrote on last edited by
      #2

      One trick is to set HeaderText="", etc. Datagrid Girl http://www.datagridgirl.com http://www.codeproject.com

      F 1 Reply Last reply
      0
      • M Marcie Jones

        One trick is to set HeaderText="", etc. Datagrid Girl http://www.datagridgirl.com http://www.codeproject.com

        F Offline
        F Offline
        fadee
        wrote on last edited by
        #3

        nah! he he he he... DataGridGirl, I was expecting something like following... :cool: trick is some what like this... Private Sub grdPGDC_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles grdPGDC.ItemCreated If e.Item.ItemType = ListItemType.Header Then For Each c As TableCell In e.Item.Cells c.Attributes.Add("background", "../../../images/G-grid-header1.gif") Next End If End Sub But thanks for your assistance, I really appreciate it :). Stay Happy; eff_kay ------------------- Therez No Place like ... 127.0.0.1

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups