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 problem-query

Datagrid problem-query

Scheduled Pinned Locked Moved ASP.NET
csharpdatabaseasp-netdebugginghelp
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 using Asp.net with C# I have a datagrid where i am calling values from the backend and i am using a radio buttonlist for selecting the values. the problem is that the values are displayed for radiobuttonlist only but in the single sql query i have called other fields for the datagrid which is not getting displayed along with the radiobuttons.Through breakpoint i have found that it not getting bound at the runtime . In my project the user selects data from the previous page comes to this page where details about that data is displayed in the datagrid having radiobuttonlist if the user clicks any option the value gets selected along with the rows in the datagrid to which the button and row is related to .I dont know how to achieve this Can anybody explain me why is it that so?? Any solution for this kal13na13

    M 1 Reply Last reply
    0
    • K kal13na13

      hi using Asp.net with C# I have a datagrid where i am calling values from the backend and i am using a radio buttonlist for selecting the values. the problem is that the values are displayed for radiobuttonlist only but in the single sql query i have called other fields for the datagrid which is not getting displayed along with the radiobuttons.Through breakpoint i have found that it not getting bound at the runtime . In my project the user selects data from the previous page comes to this page where details about that data is displayed in the datagrid having radiobuttonlist if the user clicks any option the value gets selected along with the rows in the datagrid to which the button and row is related to .I dont know how to achieve this Can anybody explain me why is it that so?? Any solution for this kal13na13

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, How do you bind data to the DataGrid control? Code snippets might help. Basically, if you want to dynamically bind a datasource to a radiobuttonlist placed inside the datagrid control, you should create an event handler for the ItemDataBound event, then bind data to the radiobuttonlist control after you get refererence to it.

      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