Print elements of a data grid view, using C#print Document

Asked

Viewed 22 times

0

Hello, good afternoon ! I am doing a small project of registration and sales of products and I have a problem in my sales form. Initially the form searches the data of a product that is in the database and displays the data in the datagrid, when the data is displayed, The user enters the quantity he is selling in the quantity column and finally when he presses the button to calculate the total sales is shown in a text box. After these steps Usario should print a page that shows the data of the products that were sold, to serve as a sales coupon, but the data are all coming together on top of each other, I do not know how I am getting the data of the datagrid are correct, but when I go through the list the items are printed on top of each other, I have already tried to concatenate with blank spaces and even use methods like slpit and Concat, but did not solve the problem, would like to know how I can print this data correctly using the print#.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.