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. Dynamically data retrieval

Dynamically data retrieval

Scheduled Pinned Locked Moved C#
csharpdatabasehelpquestion
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.
  • P Offline
    P Offline
    Prabs frm PGP
    wrote on last edited by
    #1

    Hi! I hv to fix the image button & label box into the Datagrid., In that imgbtn & lblbox i hv to display dynamic values retrieves frm DB., I am using c# coding how can we do this one..? T.Prabu

    R 1 Reply Last reply
    0
    • P Prabs frm PGP

      Hi! I hv to fix the image button & label box into the Datagrid., In that imgbtn & lblbox i hv to display dynamic values retrieves frm DB., I am using c# coding how can we do this one..? T.Prabu

      R Offline
      R Offline
      Rakheesh Chalil
      wrote on last edited by
      #2

      Hi, ASP.NET Datagrid has an event known as ItemDataBound event. Basically this event will get fired when each row is binding to the datagrid. So for displaying the image button and label, you can itemtemplate of the datagrid and for databinding to these controls, you can use ItemDataBound event The syntax of ItemDataBound event is given below private void YourDataGridName_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { //Here you should get the dynamic data from Database/file system etc. and bind to the controls } --Rakheesh

      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