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. Web Development
  3. ASP.NET
  4. Datagrid

Datagrid

Scheduled Pinned Locked Moved ASP.NET
tutorialdata-structuresquestion
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.
  • H Offline
    H Offline
    hakanaktan
    wrote on last edited by
    #1

    Hi, ı have a few arrays to bind in my datagrid after page loads.(boundColumn) I have found some samples but i could not understand how to give the value to BoundColumns rows while using array as row value. One more thing is :how to show an image as row value? Like: //code is only example,not working If myArray(counter)="9" Then myRow.DataField="" End If May i do this by DataColumn or BoundColumn? Any idea or code will be so helpfull.. Thanx in advance.. -junior coder--

    S 1 Reply Last reply
    0
    • H hakanaktan

      Hi, ı have a few arrays to bind in my datagrid after page loads.(boundColumn) I have found some samples but i could not understand how to give the value to BoundColumns rows while using array as row value. One more thing is :how to show an image as row value? Like: //code is only example,not working If myArray(counter)="9" Then myRow.DataField="" End If May i do this by DataColumn or BoundColumn? Any idea or code will be so helpfull.. Thanx in advance.. -junior coder--

      S Offline
      S Offline
      Sendilkumar M
      wrote on last edited by
      #2

      Hi Junior You can use template column for displaying an Image.Add template column with image box to the grids column and assign image value to it.What you did is worng.It will assign a string("") to that datafield.It wnt work,may give error Tnx M.Sendilkumar

      H 1 Reply Last reply
      0
      • S Sendilkumar M

        Hi Junior You can use template column for displaying an Image.Add template column with image box to the grids column and assign image value to it.What you did is worng.It will assign a string("") to that datafield.It wnt work,may give error Tnx M.Sendilkumar

        H Offline
        H Offline
        hakanaktan
        wrote on last edited by
        #3

        I did what you said..It works thanx -junior coder--

        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