CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2008
    Posts
    23

    How to show data in GridView on the same form?

    Dear seniours,
    Please tell me how can i show my data from database in gridview on the same form rather than separate form against a click event?

  2. #2
    Join Date
    Jul 2005
    Location
    Louisville, KY
    Posts
    201

    Resolved Re: How to show data in GridView on the same form?

    Would you mind elaborating?

    If you're referring to simply displaying data in a gridview, you can do it in two ways, systematically, or manually.

    If you do it systematically, you can just create, for example, a SQLDataSource, set up the columns you want to use from your tables, and then on the GridView, set the DataSource parameter to that Source.

    For more details, please visit... http://msdn.microsoft.com/en-us/libr...SDN.10%29.aspx

    -- or, you can load it up manually, via... opening a connection, selecting data, setting the source, and databinding, for more information visit http://www.aspnettutorials.com/tutor...spnet2-vb.aspx.

    H2H,
    -Quinn

    If these helps, please rate my post! Thanks!

  3. #3
    Join Date
    Jul 2005
    Location
    Louisville, KY
    Posts
    201

    Re: How to show data in GridView on the same form?

    Quote Originally Posted by QuinnJohns View Post
    Would you mind elaborating?

    If you're referring to simply displaying data in a gridview, you can do it in two ways, systematically, or manually.

    If you do it systematically, you can just create, for example, a SQLDataSource, set up the columns you want to use from your tables, and then on the GridView, set the DataSource parameter to that Source.

    For more details, please visit... http://msdn.microsoft.com/en-us/libr...SDN.10%29.aspx

    -- or, you can load it up manually, via... opening a connection, selecting data, setting the source, and databinding, for more information visit http://www.aspnettutorials.com/tutor...spnet2-vb.aspx.

    H2H,
    -Quinn

    If these helps, please rate my post! Thanks!
    So, I fail miserably, for some reason I thought this was the ASP.NET forums, and you were using SQL. ADO.NET, on what front-end? ASP.NET? ASP?

  4. #4
    Join Date
    Jul 2005
    Location
    Louisville, KY
    Posts
    201

    Re: How to show data in GridView on the same form?

    You may find this useful, if using ASP.NET + ADO.NET:

    http:// e z i n e a r t i c l e s . c o m / ? A S P - . N e t - G r i d - V i e w - D a t a b i n d i n g - S a m p l e & i d = 1 3 0 7 7 4 0

  5. #5
    Join Date
    Nov 2008
    Posts
    23

    Re: How to show data in GridView on the same form?

    All examples u have give are of asp.net but my question is still there because i need help regarding windows forms not in asp.net. So tell me if i hve showed my gridview on a form. how can i update changes on gridview using it like a excel sheet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured