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. Visual Basic
  4. how to show data at DATAGRID using data enviroment? [HELP need to show to my boss soon...]

how to show data at DATAGRID using data enviroment? [HELP need to show to my boss soon...]

Scheduled Pinned Locked Moved Visual Basic
questioncssdatabasehelptutorial
9 Posts 3 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.
  • C Offline
    C Offline
    campbells
    wrote on last edited by
    #1

    I have link my SQL in my data enviroment on running some procedure. But how can i should those SQL result at my data grid?? i have set data resource to my data enviroment but when i run it, it was blank..?? only the Column title but data was blank..?

    A A 2 Replies Last reply
    0
    • C campbells

      I have link my SQL in my data enviroment on running some procedure. But how can i should those SQL result at my data grid?? i have set data resource to my data enviroment but when i run it, it was blank..?? only the Column title but data was blank..?

      A Offline
      A Offline
      Are Jay
      wrote on last edited by
      #2

      post the code where your binding the data to the datagrid. Sounds like you've assigned the data source but never bind it. Or the data source is sending you no data.

      C 1 Reply Last reply
      0
      • C campbells

        I have link my SQL in my data enviroment on running some procedure. But how can i should those SQL result at my data grid?? i have set data resource to my data enviroment but when i run it, it was blank..?? only the Column title but data was blank..?

        A Offline
        A Offline
        aparna shukla1
        wrote on last edited by
        #3

        have you checked you table contents ? data is blank or not ? and in dataenvironment->go to connection->test connection IT IS NOT AS IMPORTANT AS WHETHER YOU SUCCEED OR FAIL BUT WHAT IMPORTANT IS THAT YOU TRY YOUR BEST. SO ALWAYS TRY AT YOUR LEVEL BEST

        C 1 Reply Last reply
        0
        • A Are Jay

          post the code where your binding the data to the datagrid. Sounds like you've assigned the data source but never bind it. Or the data source is sending you no data.

          C Offline
          C Offline
          campbells
          wrote on last edited by
          #4

          no code all in properties. DATAGRID properties i set: DATAsource: dataenvoriment1 datamember: command1 when i try to retrieve, yes the column title data show out. when i try to run it suppose the datagrid will show some data but it's blank. About my SQL is correct cause b4 that i use ADODC1 to link to datagrid and show the data show correctly. but when i try to use dataenviroment it not showing data out.

          A 1 Reply Last reply
          0
          • A aparna shukla1

            have you checked you table contents ? data is blank or not ? and in dataenvironment->go to connection->test connection IT IS NOT AS IMPORTANT AS WHETHER YOU SUCCEED OR FAIL BUT WHAT IMPORTANT IS THAT YOU TRY YOUR BEST. SO ALWAYS TRY AT YOUR LEVEL BEST

            C Offline
            C Offline
            campbells
            wrote on last edited by
            #5

            the connection is ok

            A 1 Reply Last reply
            0
            • C campbells

              the connection is ok

              A Offline
              A Offline
              aparna shukla1
              wrote on last edited by
              #6

              what kind of command you are using for retrieving data ?

              IT IS NOT AS IMPORTANT AS WHETHER YOU SUCCEED OR FAIL BUT WHAT IMPORTANT IS THAT YOU TRY YOUR BEST. SO ALWAYS TRY AT YOUR LEVEL BEST

              1 Reply Last reply
              0
              • C campbells

                no code all in properties. DATAGRID properties i set: DATAsource: dataenvoriment1 datamember: command1 when i try to retrieve, yes the column title data show out. when i try to run it suppose the datagrid will show some data but it's blank. About my SQL is correct cause b4 that i use ADODC1 to link to datagrid and show the data show correctly. but when i try to use dataenviroment it not showing data out.

                A Offline
                A Offline
                Are Jay
                wrote on last edited by
                #7

                when the datagrid is needing to be displayed you'll need to execute the data command and bind the data to the datagrid. IE... DataGrid1.DataSource = dataenvoriment1 DataGrid1.DataMember = command1 DataGrid1.DataBind()

                C 1 Reply Last reply
                0
                • A Are Jay

                  when the datagrid is needing to be displayed you'll need to execute the data command and bind the data to the datagrid. IE... DataGrid1.DataSource = dataenvoriment1 DataGrid1.DataMember = command1 DataGrid1.DataBind()

                  C Offline
                  C Offline
                  campbells
                  wrote on last edited by
                  #8

                  wat do i need to type after DataGrid1.DataBind() = ??????

                  A 1 Reply Last reply
                  0
                  • C campbells

                    wat do i need to type after DataGrid1.DataBind() = ??????

                    A Offline
                    A Offline
                    Are Jay
                    wrote on last edited by
                    #9

                    msdn2.microsoft.com[^] nothing else sould be need to bind the datasource to the datagrid.

                    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