how to make form which display data retrieved from database(access) in tabular format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeet123
    New Member
    • Nov 2008
    • 2

    how to make form which display data retrieved from database(access) in tabular format

    hi,
    i am new to c#. How can i make a form which displays data in a tabular format where the data is retrieved from the database (ms-access) and displayed in that from in table. No matter if the table data is editable or not but yes, the user must be able to print that data.
    if we can add this feature of if the records displayed exceeds the paper size i.e A4 size paper then the next records should come on next page. i'll be thankful if anybody helps.
  • anijos
    New Member
    • Nov 2008
    • 52

    #2
    This might help

    How To Automate Microsoft Access From Visual Basic .NET

    AniJos

    Comment

    • anijos
      New Member
      • Nov 2008
      • 52

      #3
      About printing, read this.

      How to: Print in Windows Forms Using Print Preview

      AniJos

      Comment

      • jeet123
        New Member
        • Nov 2008
        • 2

        #4
        see the attachment so that you understand the problem

        thanks for ur reply
        what i'm asking is that what component should i use to get data, since the data is retrieved from database contineously based on condition, so in what (text box or label, or table) component i display data. As per the data is very large the textbox or label is insufficient and also for each row it will not be possible to add such a number of textboxes. What actually i want is i'm sending as attachment in form of jpg image.
        Attached Files

        Comment

        • anijos
          New Member
          • Nov 2008
          • 52

          #5
          You can use a datagrid control.
          You can directly link the database tables and the datagrid.
          Read more here.
          VB.NET: MS-Access Interaction Tutorial (Part I)

          For Printing a datagrid
          Code: Printing a DataGrid (Visual C#)

          Comment

          Working...