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. Can someone please please help me

Can someone please please help me

Scheduled Pinned Locked Moved ASP.NET
databasetutorialhelp
3 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.
  • M Offline
    M Offline
    MeterMan
    wrote on last edited by
    #1

    I don't like to rely always on the drag and drop features of the designer so I'm wanting to code this manually. Or at least do it in a way that is very managable. Can someone help me specifically in making a simply datagrid I am not sure how to do this in code. I'm assuming I need a dataconnection a dataadapter a dataset. I simply basic tutorial on this using a database would be wonderful then I could see how its done. this stuff is so confusing :( I'm using the new visual studios 2005 Basically need to know how to code the dataset, the adapter and sql strings and all so i can hit a button do a query and it populate the dataset and then the dataview. Thanks or your help. I'll am asking for is a really good tutorial hopefull noone thinks i'm not willing to learn cause thats nt the case at all. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"

    V I 2 Replies Last reply
    0
    • M MeterMan

      I don't like to rely always on the drag and drop features of the designer so I'm wanting to code this manually. Or at least do it in a way that is very managable. Can someone help me specifically in making a simply datagrid I am not sure how to do this in code. I'm assuming I need a dataconnection a dataadapter a dataset. I simply basic tutorial on this using a database would be wonderful then I could see how its done. this stuff is so confusing :( I'm using the new visual studios 2005 Basically need to know how to code the dataset, the adapter and sql strings and all so i can hit a button do a query and it populate the dataset and then the dataview. Thanks or your help. I'll am asking for is a really good tutorial hopefull noone thinks i'm not willing to learn cause thats nt the case at all. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Simple. The designer actually places the http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
      http://deepakvasudevan.blogspot.com/
      http://deepak.blogdrive.com/

      1 Reply Last reply
      0
      • M MeterMan

        I don't like to rely always on the drag and drop features of the designer so I'm wanting to code this manually. Or at least do it in a way that is very managable. Can someone help me specifically in making a simply datagrid I am not sure how to do this in code. I'm assuming I need a dataconnection a dataadapter a dataset. I simply basic tutorial on this using a database would be wonderful then I could see how its done. this stuff is so confusing :( I'm using the new visual studios 2005 Basically need to know how to code the dataset, the adapter and sql strings and all so i can hit a button do a query and it populate the dataset and then the dataview. Thanks or your help. I'll am asking for is a really good tutorial hopefull noone thinks i'm not willing to learn cause thats nt the case at all. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"

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

        The databgrid is ooloking for an object the implements the IList Like a DataTable or an ArrayList SqlConnection sqlConn = new SqlConnection(myconnection string); sqlCommand cmd = new SqlCommand("my query", sqlConn); sqlConn.Open(); SqlDataAdapter adapt = new SqlDataAdapter(); adapt.SelectCommand = cmd; DataTable dt = new DataTable("dt"); adapt.Fill( dt ); myDataGrid.DataSource = dt; myDataGrid.DataBind(); 1 line of code equals many bugs. So don't write any!!

        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