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. Databinding is not taking place for datagrid

Databinding is not taking place for datagrid

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-serverwpf
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.
  • K Offline
    K Offline
    kal13na13
    wrote on last edited by
    #1

    hi I am using asp.net,C# ,sql server in my project i have created radiobuttonlist and datagrid where the data is getting populated from the backend in the radiobuttonlist by selecting any item and clicking button it should display me the data in the datagrid in the same page which is not happening .When i click the button it gives me blank nothing is displaying oly radiobuttonlist with data is getting displayed I used breakpoints to see exactly where the error is occuring and i found that its not even binding the datagrid in the button_click evevnt.I am sending the code please anyone here can advise what i am suppose to do <%@ Page language="c#" Codebehind="WebForm5.aspx.cs" AutoEventWireup="false" Inherits="Railways.WebForm5" %> WebForm5

    I 1 Reply Last reply
    0
    • K kal13na13

      hi I am using asp.net,C# ,sql server in my project i have created radiobuttonlist and datagrid where the data is getting populated from the backend in the radiobuttonlist by selecting any item and clicking button it should display me the data in the datagrid in the same page which is not happening .When i click the button it gives me blank nothing is displaying oly radiobuttonlist with data is getting displayed I used breakpoints to see exactly where the error is occuring and i found that its not even binding the datagrid in the button_click evevnt.I am sending the code please anyone here can advise what i am suppose to do <%@ Page language="c#" Codebehind="WebForm5.aspx.cs" AutoEventWireup="false" Inherits="Railways.WebForm5" %> WebForm5

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      did to set the .DataSource property and then call the DataBind() method? I'm not an expert yet, but I play one at work. Yeah and here too.

      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