Results 1 to 3 of 3

Thread: Best choice for data output

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2012
    Posts
    22

    Best choice for data output

    Hello, I'm new here, so forgive me if this is not worded properly or I seem really stupid.

    I recently created a checkbook organizer in my VB.net class. I used a datagridview to output the transactions (input by user) into a datatable that was bound to the dgv.

    Now, i have to make a new program using ASP.net. I don't see the dgv option, so I'm looking for the best idea of how to output my results? I need something like a table that shows the following headers:

    Transaction Type | Transaction Date | ID# | Amount | Description

    After the headers are in place, i'll need to insert rows based on each transaction. Is there "best" option for what toolbox function to work with? I don't need the code, but a general tip would be a good starting point. Sample code won't hurt, but I just want to do it right and do it myself.

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,605

    Re: Best choice for data output

    There is a gridview control that is the closest of the DGV control.
    Remember asp.net is different in many aspects.You have to reload your data or keep it safe because this is a stateless world.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Best choice for data output

    Hello,

    As sap has said, the best approach for showing the Data would be the ASP.Net GridView:

    http://msdn.microsoft.com/en-us/libr....gridview.aspx

    It is one of the most flexible ASP.Net Server Controls out there. In terms of adding new rows, the standard way to do it would be to use an ASP.Net FormView in conjunction with the GridView:

    http://www.asp.net/web-forms/videos/...w-and-formview

    However, you will find a number of samples to modifying the GridView to directly add rows, however, this is more work:

    http://www.aspsnippets.com/Articles/...TextBoxes.aspx

    Hope that helps!

    Gary

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