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. some problem

some problem

Scheduled Pinned Locked Moved ASP.NET
help
6 Posts 4 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.
  • I Offline
    I Offline
    Imran Khan Pathan
    wrote on last edited by
    #1

    hi friends i have three table one is category with catid and catname second is product with catid,proid and proname third is item with proid,itemid,item name,price,...etc now i want to bind it in below format category name2 product name item name1 price ..... .... .... ... ... item name2 price ..... .... .... ... ... . . category name2 product name2 item name price . . . . . . . i think all of u understand my problem but i cant get any idea which control i have to use. plz give me some idea thanks pathan

    B S P 3 Replies Last reply
    0
    • I Imran Khan Pathan

      hi friends i have three table one is category with catid and catname second is product with catid,proid and proname third is item with proid,itemid,item name,price,...etc now i want to bind it in below format category name2 product name item name1 price ..... .... .... ... ... item name2 price ..... .... .... ... ... . . category name2 product name2 item name price . . . . . . . i think all of u understand my problem but i cant get any idea which control i have to use. plz give me some idea thanks pathan

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      Are you trying to say that "want to combine one query which conatains data of three tables related with them: Categories with Product , Item with Product" something like this: select C.*,P.*,I.* from Categories as C,Products as P, Items as I where P.IDCategory = C.ID and I.IDProduct = P.ID

      I 1 Reply Last reply
      0
      • I Imran Khan Pathan

        hi friends i have three table one is category with catid and catname second is product with catid,proid and proname third is item with proid,itemid,item name,price,...etc now i want to bind it in below format category name2 product name item name1 price ..... .... .... ... ... item name2 price ..... .... .... ... ... . . category name2 product name2 item name price . . . . . . . i think all of u understand my problem but i cant get any idea which control i have to use. plz give me some idea thanks pathan

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        HI Imran i have ddone this its better to create custom control than using DataGrid or Repeater any thing create a custom control and develop logic you can do any thing with as you are going to write all those controls in render method ?

        I 1 Reply Last reply
        0
        • B Blue_Boy

          Are you trying to say that "want to combine one query which conatains data of three tables related with them: Categories with Product , Item with Product" something like this: select C.*,P.*,I.* from Categories as C,Products as P, Items as I where P.IDCategory = C.ID and I.IDProduct = P.ID

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          No.i have no query problem i have a problem that which control is used to bind in this format pathan

          1 Reply Last reply
          0
          • S Sandeep Akhare

            HI Imran i have ddone this its better to create custom control than using DataGrid or Repeater any thing create a custom control and develop logic you can do any thing with as you are going to write all those controls in render method ?

            I Offline
            I Offline
            Imran Khan Pathan
            wrote on last edited by
            #5

            Thanks for ur reply sandeep i will try to create custom control pathan

            1 Reply Last reply
            0
            • I Imran Khan Pathan

              hi friends i have three table one is category with catid and catname second is product with catid,proid and proname third is item with proid,itemid,item name,price,...etc now i want to bind it in below format category name2 product name item name1 price ..... .... .... ... ... item name2 price ..... .... .... ... ... . . category name2 product name2 item name price . . . . . . . i think all of u understand my problem but i cant get any idea which control i have to use. plz give me some idea thanks pathan

              P Offline
              P Offline
              Pradipta Basu
              wrote on last edited by
              #6

              DataGrid with TemplateColumn will solve your problem. Inside the TemplateColumn use a table to structure the data the way you want. Thanks,

              Pradipta Basu

              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