By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

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

P: 2
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.
Nov 27 '08 #1
Share this Question
Share on Google+
4 Replies

P: 52

P: 52
About printing, read this.

How to: Print in Windows Forms Using Print Preview

Nov 27 '08 #3

P: 2
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 Images
File Type: jpg View of form.jpg (15.7 KB, 343 views)
Nov 28 '08 #4

P: 52
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#)
Dec 1 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.