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
  1. Home
  2. General Programming
  3. C#
  4. how to add a style in datagrid

how to add a style in datagrid

Scheduled Pinned Locked Moved C#
csshelptutorial
2 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.
  • H Offline
    H Offline
    HowRU
    wrote on last edited by
    #1

    Hi , I want to add a style to the paricular row's text in datagrid....as my datagrid is directly take the data from store procedure.... datagrid2.datasource=ds; datagrid2.databind(); i want to add the style like whenever my mouse is over on that text i want to change the cursor as a hand. In the css file i created a style for the hand named "hand" ....that's the same i m using in the following code.... datagrid2.Items[i].Cells[1].Style.Add("onmouseover","hand"); plz help me.... Thanks..

    D 1 Reply Last reply
    0
    • H HowRU

      Hi , I want to add a style to the paricular row's text in datagrid....as my datagrid is directly take the data from store procedure.... datagrid2.datasource=ds; datagrid2.databind(); i want to add the style like whenever my mouse is over on that text i want to change the cursor as a hand. In the css file i created a style for the hand named "hand" ....that's the same i m using in the following code.... datagrid2.Items[i].Cells[1].Style.Add("onmouseover","hand"); plz help me.... Thanks..

      D Offline
      D Offline
      dabuskol
      wrote on last edited by
      #2

      Hi, This box is not enough if I will discuss to you all about datagrid. I suggest you visit the following site and you will find all the solutions and code that you want. http://aspnet.4guysfromrolla.com/articles/042402-1.aspx http://wwww.datagridgirl.com Q1. datagrid2.Items[i].Cells[1].Style.Add("onmouseover","hand"); A1. Try to go to this page "MOUSEOVER coloring and CLick Datagrid" http://aspalliance.com/articleViewer.aspx?aId=30&pId=1 I hope this will help you. Good Luck /Dabuskol

      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